diff --git a/mongoose.c b/mongoose.c index 4048a790fa958f0b79dfa1949b6742d2badf7763..8199e28eacc7fcafbc742ff1fde762ccdb8ee98e 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2409,8 +2409,7 @@ static int parse_http_message(char *buf, int len, struct mg_connection *ri) { } else { if (is_request) { ri->http_version += 5; - } - else { + } else { ri->status_code = atoi(ri->uri); } parse_http_headers(&buf, ri);