mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Lsm
PUBLISHED_FROM=5f465d245bb9ada5202cdd23ddc5b9856df26951
This commit is contained in:
1 parent
ff4649fe42
commit
8fb58ebbca
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -8525,7 +8525,8 @@ MG_INTERNAL void mg_send_http_file(struct mg_connection *nc, char *path,
|
|||||||
mg_http_send_error(nc, 501, NULL);
|
mg_http_send_error(nc, 501, NULL);
|
||||||
#endif
|
#endif
|
||||||
} else if (mg_is_not_modified(hm, &st)) {
|
} 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 {
|
} else {
|
||||||
mg_http_serve_file2(nc, index_file ? index_file : path, hm, opts);
|
mg_http_serve_file2(nc, index_file ? index_file : path, hm, opts);
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -2691,7 +2691,8 @@ MG_INTERNAL void mg_send_http_file(struct mg_connection *nc, char *path,
|
|||||||
mg_http_send_error(nc, 501, NULL);
|
mg_http_send_error(nc, 501, NULL);
|
||||||
#endif
|
#endif
|
||||||
} else if (mg_is_not_modified(hm, &st)) {
|
} 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 {
|
} else {
|
||||||
mg_http_serve_file2(nc, index_file ? index_file : path, hm, opts);
|
mg_http_serve_file2(nc, index_file ? index_file : path, hm, opts);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user