aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/http.c b/http.c
index 2868d07..014dcc6 100644
--- a/http.c
+++ b/http.c
@@ -1592,8 +1592,13 @@ static int process_header(struct http_ctx *const h, const char *const line,
const struct header *const hdr = &headers[i];
int ret;
- if (!strncasecmp(line, hdr->header, n) && (ret = hdr->f(h, value)))
- return ret;
+ if (!strncasecmp(line, hdr->header, n))
+ {
+ if ((ret = hdr->f(h, value)))
+ return ret;
+
+ break;
+ }
}
return append_header(h, line, n, value);