mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Corrected misplaced brackets in parse_http_message()
This commit is contained in:
1 parent
1ef29c1b3b
commit
2055d41a9f
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -3070,7 +3070,7 @@ static int parse_http_message(char *buf, int len, struct mg_request_info *ri) {
|
||||
// "GET / HTTP/1.0 ...." or "HTTP/1.0 200 OK ..."
|
||||
is_request = is_valid_http_method(ri->request_method);
|
||||
if ((is_request && memcmp(ri->http_version, "HTTP/", 5) != 0) ||
|
||||
(!is_request && memcmp(ri->request_method, "HTTP/", 5)) != 0) {
|
||||
(!is_request && memcmp(ri->request_method, "HTTP/", 5) != 0)) {
|
||||
request_length = -1;
|
||||
} else {
|
||||
if (is_request) {
|
||||
|
||||
Reference in new issue
Block a user