commit 2cc4505c8ca6ebe06667e49af3c8fad5d4a19554
parent f46bba50efeb7856352b47d43f56c39e237e8bfb
Author: Joris Vink <joris@coders.se>
Date: Thu, 2 May 2013 03:52:53 +0200
correct offset
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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);
}