This commit is contained in:
yrutschle 2018-09-23 21:57:16 +02:00
commit 6d6ea50066

View File

@ -197,7 +197,7 @@ static int probe_http_method(const char *p, int len, const char *opt)
if (len < strlen(opt)) if (len < strlen(opt))
return PROBE_AGAIN; return PROBE_AGAIN;
return !strncmp(p, opt, len); return !strncmp(p, opt, strlen(opt));
} }
/* Is the buffer the beginning of an HTTP connection? */ /* Is the buffer the beginning of an HTTP connection? */