summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
author[anp/hsw] <sysop@880.ru>2019-01-01 11:00:43 +0700
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-07 01:12:50 +0100
commit17ae1b512c386970d0f5b84b385b89749a89b1e5 (patch)
tree9d719dcde7913e4088a992ade48b60a87e210a5e /src/reqs.c
parentd0fae1176094f0da46ed21d773fff64284dfa4a8 (diff)
Do not give error while storing invalid header
Diffstat (limited to 'src/reqs.c')
-rw-r--r--src/reqs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reqs.c b/src/reqs.c
index c58bbed..365b27d 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -605,7 +605,7 @@ add_header_to_connection (hashmap_t hashofheaders, char *header, size_t len)
sep = strchr (header, ':');
if (!sep)
- return -1;
+ return 0; /* just skip invalid header, do not give error */
/* Blank out colons, spaces, and tabs. */
while (*sep == ':' || *sep == ' ' || *sep == '\t')