transmit http answer code using http_client

This commit is contained in:
MPR committed 2014-10-11 17:56:35 +02:00
1 parent 531fec34fd
commit df206bc05a
2 files changed
+4

No files matched your search

+3
View File
@@ -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) {