This commit is contained in:
cinap_lenrek 2016-05-13 11:14:37 +02:00
commit 918e791bc8

View file

@ -1847,9 +1847,14 @@ hard:
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;
}