hget: -p should work the same as in old hget

This commit is contained in:
stanley lieber 2012-03-16 12:58:01 -05:00
parent 9c71514b71
commit 692d66feff

View file

@ -51,8 +51,8 @@ if(! ~ $s 0)
echo -n headers $i >[1=0] echo -n headers $i >[1=0]
if(~ $#m 1) if(~ $#m 1)
echo -n request $m >[1=0] echo -n request $m >[1=0]
if(~ $#p 1) if(! ~ $#p 0)
cat <$p >$d/postbody echo $"p >$d/postbody
<$d/body { <$d/body {
if(~ $#o 1){ if(~ $#o 1){
l=`{cat $d/contentlength >[2]/dev/null} l=`{cat $d/contentlength >[2]/dev/null}