Merge pull request #201 from astiob/probe-strlen

Fix incorrect strncmp length in HTTP method probing
This commit is contained in:
yrutschle 2018-09-23 21:56:51 +02:00 committed by GitHub
commit 71265a8477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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? */