shithub: riscv

Download patch

ref: 692d66feff7f39062d12392164591fbe0fea776c
parent: 9c71514b7158cfa8102b6a32775b783fcd9681ed
author: stanley lieber <[email protected]>
date: Fri Mar 16 08:58:01 EDT 2012

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

--- a/rc/bin/hget
+++ b/rc/bin/hget
@@ -51,8 +51,8 @@
 		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}