Do not give error while storing invalid header
This commit is contained in:
parent
f44d0f387b
commit
b675a6d63d
@ -604,7 +604,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