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