From 2cc4505c8ca6ebe06667e49af3c8fad5d4a19554 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Thu, 2 May 2013 03:52:53 +0200 Subject: [PATCH] correct offset --- src/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index f82f716..f188394 100644 --- a/src/http.c +++ b/src/http.c @@ -280,6 +280,7 @@ http_header_recv(struct netbuf *nb) v = kore_split_string(headers[0], " ", request, 4); if (v != 3) { + kore_log("%s -> %s", headers[i], p); free(hbuf); return (KORE_RESULT_ERROR); } @@ -290,7 +291,7 @@ http_header_recv(struct netbuf *nb) return (KORE_RESULT_ERROR); } - if (strlen(host[0]) != 4 || strncasecmp(host[0], "host", 5)) { + if (strlen(host[0]) != 4 || strncasecmp(host[0], "host", 4)) { free(hbuf); return (KORE_RESULT_ERROR); }