mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-29 12:41:03 +00:00
Next
PUBLISHED_FROM=6fa0be81ce429b8db9e3ed572cb4a876b6fb2693
This commit is contained in:
1 parent
b6196371bb
commit
1a38e91042
3 files changed
+7
-3
No files matched your search
+1
-1
@@ -455,7 +455,7 @@ int mg_parse_http(const char *s, int n, struct http_message *hm, int is_req) {
|
||||
}
|
||||
} else {
|
||||
s = mg_skip(s, end, " ", &hm->proto);
|
||||
if (end - s < 4 || s[3] != ' ') return -1;
|
||||
if (end - s < 4 || s[0] < '0' || s[0] > '9' || s[3] != ' ') return -1;
|
||||
hm->resp_code = atoi(s);
|
||||
if (hm->resp_code < 100 || hm->resp_code >= 600) return -1;
|
||||
s += 4;
|
||||
|
||||
Reference in new issue
Block a user