forked from mirrors/kore
correct offset
This commit is contained in:
parent
f46bba50ef
commit
2cc4505c8c
|
@ -280,6 +280,7 @@ http_header_recv(struct netbuf *nb)
|
||||||
|
|
||||||
v = kore_split_string(headers[0], " ", request, 4);
|
v = kore_split_string(headers[0], " ", request, 4);
|
||||||
if (v != 3) {
|
if (v != 3) {
|
||||||
|
kore_log("%s -> %s", headers[i], p);
|
||||||
free(hbuf);
|
free(hbuf);
|
||||||
return (KORE_RESULT_ERROR);
|
return (KORE_RESULT_ERROR);
|
||||||
}
|
}
|
||||||
|
@ -290,7 +291,7 @@ http_header_recv(struct netbuf *nb)
|
||||||
return (KORE_RESULT_ERROR);
|
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);
|
free(hbuf);
|
||||||
return (KORE_RESULT_ERROR);
|
return (KORE_RESULT_ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue