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}