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
91c9ab80
Commit
91c9ab80
authored
Mar 12, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forwarding POST data to the CGI process
parent
9231c734
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mongoose.c
mongoose.c
+3
-0
No files found.
mongoose.c
View file @
91c9ab80
...
@@ -1878,6 +1878,9 @@ static void open_cgi_endpoint(struct connection *conn, const char *prog) {
...
@@ -1878,6 +1878,9 @@ static void open_cgi_endpoint(struct connection *conn, const char *prog) {
ns_send
(
conn
->
ns_conn
,
cgi_status
,
sizeof
(
cgi_status
)
-
1
);
ns_send
(
conn
->
ns_conn
,
cgi_status
,
sizeof
(
cgi_status
)
-
1
);
conn
->
mg_conn
.
status_code
=
200
;
conn
->
mg_conn
.
status_code
=
200
;
conn
->
ns_conn
->
flags
|=
NSF_BUFFER_BUT_DONT_SEND
;
conn
->
ns_conn
->
flags
|=
NSF_BUFFER_BUT_DONT_SEND
;
// Pass POST data to the CGI process
conn
->
endpoint
.
cgi_conn
->
send_iobuf
=
conn
->
ns_conn
->
recv_iobuf
;
iobuf_init
(
&
conn
->
ns_conn
->
recv_iobuf
,
0
);
}
else
{
}
else
{
closesocket
(
fds
[
0
]);
closesocket
(
fds
[
0
]);
send_http_error
(
conn
,
500
,
"start_process(%s) failed"
,
prog
);
send_http_error
(
conn
,
500
,
"start_process(%s) failed"
,
prog
);
...
...
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