Merge pull request #201 from astiob/probe-strlen

Fix incorrect strncmp length in HTTP method probing
This commit is contained in:
yrutschle authored and GitHub committed 2018-09-23 21:56:51 +02:00
commit 71265a8477
1 file changed
+1 -1
+1 -1
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? */