Skip to content

Commit fb19ec4

Browse files
committed
http server error code actually working
1 parent e1e7613 commit fb19ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/sv_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ int SV_MV_Websrv_Request_ExtThread(struct mg_connection *conn, enum mg_event ev)
838838
if (res) {
839839
return MG_FALSE;
840840
} else {
841-
mg_send_header(conn, "Content-Type", "text/plain");
842841
mg_send_status(conn, 403);
842+
mg_send_header(conn, "Content-Type", "text/plain");
843843
mg_printf_data(conn, "403 forbidden");
844844
return MG_TRUE;
845845
}

0 commit comments

Comments
 (0)