mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-17 10:49:47 +00:00
Use mg_http_status()
This commit is contained in:
1 parent
507935d067
commit
63261ec0d5
1 file changed
+1
-1
+1
-1
@@ -803,7 +803,7 @@ static void f3(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
// MG_INFO(("-->[%.*s]", (int) hm->message.len, hm->message.ptr));
|
||||
// ASSERT(mg_vcmp(&hm->method, "HTTP/1.1") == 0);
|
||||
// ASSERT(mg_vcmp(&hm->uri, "301") == 0);
|
||||
*ok = atoi(hm->uri.ptr);
|
||||
*ok = mg_http_status(hm);
|
||||
} else if (ev == MG_EV_CLOSE) {
|
||||
if (*ok == 0) *ok = 888;
|
||||
} else if (ev == MG_EV_ERROR) {
|
||||
|
||||
Reference in new issue
Block a user