mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
677f23cc22
2
http.c
2
http.c
@ -1468,7 +1468,7 @@ evhttp_parse_http_version(const char *version, struct evhttp_request *req)
|
||||
int major, minor;
|
||||
char ch;
|
||||
int n = sscanf(version, "HTTP/%d.%d%c", &major, &minor, &ch);
|
||||
if (n > 2 || major > 1) {
|
||||
if (n != 2 || major > 1) {
|
||||
event_debug(("%s: bad version %s on message %p from %s",
|
||||
__func__, version, req, req->remote_host));
|
||||
return (-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user