Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
51a80e48
Commit
51a80e48
authored
Jan 31, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not output headers when serving Lua server pages
parent
54f15a8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
mongoose.c
mongoose.c
+1
-2
No files found.
mongoose.c
View file @
51a80e48
...
@@ -4033,8 +4033,7 @@ static void handle_lsp_request(struct mg_connection *conn, const char *path,
...
@@ -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\n
Connection: 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment