mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
transmit http answer code using http_client
This commit is contained in:
1 parent
531fec34fd
commit
df206bc05a
2 files changed
+4
No files matched your search
@@ -2410,6 +2410,9 @@ static int parse_http_message(char *buf, int len, struct mg_connection *ri) {
|
||||
if (is_request) {
|
||||
ri->http_version += 5;
|
||||
}
|
||||
else {
|
||||
ri->status_code = atoi(ri->uri);
|
||||
}
|
||||
parse_http_headers(&buf, ri);
|
||||
|
||||
if ((ri->query_string = strchr(ri->uri, '?')) != NULL) {
|
||||
|
||||
Reference in new issue
Block a user