From 17ae1b512c386970d0f5b84b385b89749a89b1e5 Mon Sep 17 00:00:00 2001 From: "[anp/hsw]" Date: Tue, 1 Jan 2019 11:00:43 +0700 Subject: [PATCH] Do not give error while storing invalid header --- src/reqs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')