Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
8fb58ebb
Commit
8fb58ebb
authored
Nov 04, 2019
by
Sergey Lyubka
Committed by
Cesanta Bot
Nov 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lsm
PUBLISHED_FROM=5f465d245bb9ada5202cdd23ddc5b9856df26951
parent
ff4649fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mongoose.c
mongoose.c
+2
-1
mg_http.c
src/mg_http.c
+2
-1
No files found.
mongoose.c
View file @
8fb58ebb
...
...
@@ -8525,7 +8525,8 @@ MG_INTERNAL void mg_send_http_file(struct mg_connection *nc, char *path,
mg_http_send_error
(
nc
,
501
,
NULL
);
#endif
}
else
if
(
mg_is_not_modified
(
hm
,
&
st
))
{
mg_http_send_error
(
nc
,
304
,
"Not Modified"
);
/* Note: not using mg_http_send_error in order to keep connection alive */
mg_send_head
(
nc
,
304
,
0
,
NULL
);
}
else
{
mg_http_serve_file2
(
nc
,
index_file
?
index_file
:
path
,
hm
,
opts
);
}
...
...
src/mg_http.c
View file @
8fb58ebb
...
...
@@ -2691,7 +2691,8 @@ MG_INTERNAL void mg_send_http_file(struct mg_connection *nc, char *path,
mg_http_send_error
(
nc
,
501
,
NULL
);
#endif
}
else
if
(
mg_is_not_modified
(
hm
,
&
st
))
{
mg_http_send_error
(
nc
,
304
,
"Not Modified"
);
/* Note: not using mg_http_send_error in order to keep connection alive */
mg_send_head
(
nc
,
304
,
0
,
NULL
);
}
else
{
mg_http_serve_file2
(
nc
,
index_file
?
index_file
:
path
,
hm
,
opts
);
}
...
...
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