Sync mongoose changes

PUBLISHED_FROM=8b6ebf46728aca40f916dde88e372b4540ed6ea4
This commit is contained in:
Sergey Lyubka committed 2019-12-19 11:12:57 +00:00
1 parent c34f6c54e7
commit 464113c5ae
5 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef CS_MONGOOSE_SRC_COMMON_H_
#define CS_MONGOOSE_SRC_COMMON_H_
#define MG_VERSION "6.15"
#define MG_VERSION "6.16"
/* Local tweaks, applied before any of Mongoose's own headers. */
#ifdef MG_LOCALS
+2 -1
View File
@@ -2692,7 +2692,8 @@ MG_INTERNAL void mg_send_http_file(struct mg_connection *nc, char *path,
#endif
} else if (mg_is_not_modified(hm, &st)) {
/* Note: not using mg_http_send_error in order to keep connection alive */
mg_send_head(nc, 304, 0, NULL);
/* Note: passing extra headers allow users to control session cookies */
mg_send_head(nc, 304, 0, opts->extra_headers);
} else {
mg_http_serve_file2(nc, index_file ? index_file : path, hm, opts);
}