Fix HTTP method probing

This commit is contained in:
Oleg Oshmyan 2018-04-11 15:37:25 +03:00
parent a5d00568b5
commit e8f0d3ea53

View File

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