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
60408dea
Commit
60408dea
authored
Aug 24, 2011
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -DNO_CGI build
parent
bc900844
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mongoose.c
mongoose.c
+2
-2
No files found.
mongoose.c
View file @
60408dea
...
...
@@ -756,7 +756,6 @@ static const char *next_option(const char *list, struct vec *val,
return
list
;
}
#if !defined(NO_CGI)
static
int
match_extension
(
const
char
*
path
,
const
char
*
ext_list
)
{
struct
vec
ext_vec
;
size_t
path_len
;
...
...
@@ -771,7 +770,6 @@ static int match_extension(const char *path, const char *ext_list) {
return
0
;
}
#endif // !NO_CGI
// HTTP 1.1 assumes keep alive if "Connection:" header is not set
// This function must tolerate situations when connection info is not
...
...
@@ -3399,6 +3397,7 @@ static void handle_request(struct mg_connection *conn) {
send_http_error
(
conn
,
403
,
"Directory Listing Denied"
,
"Directory listing denied"
);
}
#if !defined(NO_CGI)
}
else
if
(
match_extension
(
path
,
conn
->
ctx
->
config
[
CGI_EXTENSIONS
]))
{
if
(
strcmp
(
ri
->
request_method
,
"POST"
)
&&
strcmp
(
ri
->
request_method
,
"GET"
))
{
...
...
@@ -3407,6 +3406,7 @@ static void handle_request(struct mg_connection *conn) {
}
else
{
handle_cgi_request
(
conn
,
path
);
}
#endif // !NO_CGI
}
else
if
(
match_extension
(
path
,
conn
->
ctx
->
config
[
SSI_EXTENSIONS
]))
{
handle_ssi_file_request
(
conn
,
path
);
}
else
if
(
is_not_modified
(
conn
,
&
st
))
{
...
...
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