hget: fix -p to not put a newline into the postbody at the end

This commit is contained in:
cinap_lenrek 2012-09-15 06:25:32 +02:00
parent 1d62e1d8c8
commit cc459aa7ab

View file

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