merge
This commit is contained in:
commit
918e791bc8
1 changed files with 5 additions and 0 deletions
|
@ -1847,9 +1847,14 @@ hard:
|
||||||
char*
|
char*
|
||||||
hdrval(char *p)
|
hdrval(char *p)
|
||||||
{
|
{
|
||||||
|
char *e;
|
||||||
|
|
||||||
p = strchr(p, ':') + 1;
|
p = strchr(p, ':') + 1;
|
||||||
while(*p == ' ' || *p == '\t')
|
while(*p == ' ' || *p == '\t')
|
||||||
p++;
|
p++;
|
||||||
|
e = strchr(p, 0) - 1;
|
||||||
|
while(e >= p && (*e == ' ' || *e == '\t'))
|
||||||
|
*e-- = 0;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue