Do not give error while storing invalid header
This commit is contained in:
parent
d0fae11760
commit
17ae1b512c
@ -605,7 +605,7 @@ add_header_to_connection (hashmap_t hashofheaders, char *header, size_t len)
|
|||||||
|
|
||||||
sep = strchr (header, ':');
|
sep = strchr (header, ':');
|
||||||
if (!sep)
|
if (!sep)
|
||||||
return -1;
|
return 0; /* just skip invalid header, do not give error */
|
||||||
|
|
||||||
/* Blank out colons, spaces, and tabs. */
|
/* Blank out colons, spaces, and tabs. */
|
||||||
while (*sep == ':' || *sep == ' ' || *sep == '\t')
|
while (*sep == ':' || *sep == ' ' || *sep == '\t')
|
||||||
|
Loading…
Reference in New Issue
Block a user