summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@rei2.9hal>2012-03-16 22:42:59 +0100
committercinap_lenrek <cinap_lenrek@rei2.9hal>2012-03-16 22:42:59 +0100
commitbc3457726a551cc92b17ad4006620cd8b8dc102e (patch)
tree54c6b407670c842475c50ed97f3a4a970783ca9b /rc
parent9b2d3d426665b65e3cbba33504f103e86896ec9a (diff)
parenta254cb4de24be51290400aa4572a7f2c2f56a1f7 (diff)
downloadplan9front-bc3457726a551cc92b17ad4006620cd8b8dc102e.tar.xz
merge
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/hget4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/hget b/rc/bin/hget
index a093e7a5c..456984436 100755
--- a/rc/bin/hget
+++ b/rc/bin/hget
@@ -51,8 +51,8 @@ if(! ~ $s 0)
echo -n headers $i >[1=0]
if(~ $#m 1)
echo -n request $m >[1=0]
- if(~ $#p 1)
- cat <$p >$d/postbody
+ if(! ~ $#p 0)
+ echo $"p >$d/postbody
<$d/body {
if(~ $#o 1){
l=`{cat $d/contentlength >[2]/dev/null}