mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-03 09:01:03 +03:00
Merge branch 'master' of https://github.com/yrutschle/sslh
This commit is contained in:
commit
6d6ea50066
2
probe.c
2
probe.c
@ -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? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user