Do not give error while storing invalid header

This commit is contained in:
[anp/hsw] 2019-01-01 11:00:43 +07:00
parent f44d0f387b
commit b675a6d63d

View File

@ -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')