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
84557424
Commit
84557424
authored
Jan 10, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass reply status code to MG_REQUEST_COMPLETE
parent
5b786a50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mongoose.c
mongoose.c
+1
-0
mongoose.h
mongoose.h
+3
-2
No files found.
mongoose.c
View file @
84557424
...
...
@@ -4826,6 +4826,7 @@ static void process_new_connection(struct mg_connection *conn) {
}
conn
->
birth_time
=
time
(
NULL
);
handle_request
(
conn
);
conn
->
request_info
.
ev_data
=
(
void
*
)
conn
->
status_code
;
call_user
(
conn
,
MG_REQUEST_COMPLETE
);
log_access
(
conn
);
}
...
...
mongoose.h
View file @
84557424
...
...
@@ -47,7 +47,7 @@ struct mg_request_info {
const
char
*
name
;
// HTTP header name
const
char
*
value
;
// HTTP header value
}
http_headers
[
64
];
// Maximum 64 headers
void
*
user_data
;
// User data pointer passed to
the
mg_start()
void
*
user_data
;
// User data pointer passed to mg_start()
void
*
ev_data
;
// Event-specific data pointer
};
...
...
@@ -61,7 +61,8 @@ enum mg_event {
// Mongoose has finished handling the request.
// Callback return value is ignored.
// ev_data contains NULL.
// ev_data contains integer HTTP status code:
// int http_reply_status_code = (long) request_info->ev_data;
MG_REQUEST_COMPLETE
,
// HTTP error must be returned to the client.
...
...
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