From e8f0d3ea530c3c9718992b4aac0075aef9db603c Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Wed, 11 Apr 2018 15:37:25 +0300 Subject: [PATCH] Fix HTTP method probing --- probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe.c b/probe.c index b01d40b..819577d 100644 --- a/probe.c +++ b/probe.c @@ -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? */