Do not give error while storing invalid header

This commit is contained in:
[anp/hsw] 2019-01-01 11:00:43 +07:00 committed by rofl0r
parent d0fae11760
commit 17ae1b512c

View File

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