mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Do not output headers when serving Lua server pages
This commit is contained in:
1 parent
54f15a8fe3
commit
51a80e4844
1 file changed
+1
-2
+1
-2
@@ -4033,8 +4033,7 @@ static void handle_lsp_request(struct mg_connection *conn, const char *path,
|
|||||||
} else if ((L = luaL_newstate()) == NULL) {
|
} else if ((L = luaL_newstate()) == NULL) {
|
||||||
send_http_error(conn, 500, http_500_error, "%s", "y");
|
send_http_error(conn, 500, http_500_error, "%s", "y");
|
||||||
} else {
|
} else {
|
||||||
mg_printf(conn, "%s", "HTTP/1.1 200 OK\r\n"
|
// We're not sending HTTP headers here, Lua page must do it.
|
||||||
"Content-Type: text/html\r\nConnection: close\r\n\r\n");
|
|
||||||
prepare_lua_environment(conn, L);
|
prepare_lua_environment(conn, L);
|
||||||
conn->request_info.ev_data = L;
|
conn->request_info.ev_data = L;
|
||||||
call_user(conn, MG_INIT_LUA);
|
call_user(conn, MG_INIT_LUA);
|
||||||
|
|||||||
Reference in new issue
Block a user