git: 9front

Download patch

ref: 80c98c5b959b2c47a4580a20411519d557491805
parent: 590bed486ead873dbd7303d412019581212d1780
parent: bdf520d281cec4923aac1c00b00d5dc3e9ef11c2
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri May 13 07:14:37 EDT 2016

merge

--- a/sys/src/cmd/upas/marshal/marshal.c
+++ b/sys/src/cmd/upas/marshal/marshal.c
@@ -1847,9 +1847,14 @@
 char*
 hdrval(char *p)
 {
+	char *e;
+
 	p = strchr(p, ':') + 1;
 	while(*p == ' ' || *p == '\t')
 		p++;
+	e = strchr(p, 0) - 1;
+	while(e >= p && (*e == ' ' || *e == '\t'))
+		*e-- = 0;
 	return p;
 }
 
--