mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-11 23:19:00 +08:00
Fix #1351 - squash warning
This commit is contained in:
parent
40b3382023
commit
c7bd63ef53
@ -1281,7 +1281,7 @@ void mg_http_serve_file(struct mg_connection *c, struct mg_http_message *hm,
|
|||||||
struct mg_str *inm = NULL;
|
struct mg_str *inm = NULL;
|
||||||
|
|
||||||
if (fd == NULL || fs->stat(path, &size, &mtime) == 0) {
|
if (fd == NULL || fs->stat(path, &size, &mtime) == 0) {
|
||||||
LOG(LL_DEBUG, ("404 [%.*s] %p", (int) hm->uri.len, hm->uri.ptr, fd));
|
LOG(LL_DEBUG, ("404 [%s] %p", path, (void *) fd));
|
||||||
mg_http_reply(c, 404, "", "%s", "Not found\n");
|
mg_http_reply(c, 404, "", "%s", "Not found\n");
|
||||||
fs->close(fd);
|
fs->close(fd);
|
||||||
// NOTE: mg_http_etag() call should go first!
|
// NOTE: mg_http_etag() call should go first!
|
||||||
|
@ -531,7 +531,7 @@ void mg_http_serve_file(struct mg_connection *c, struct mg_http_message *hm,
|
|||||||
struct mg_str *inm = NULL;
|
struct mg_str *inm = NULL;
|
||||||
|
|
||||||
if (fd == NULL || fs->stat(path, &size, &mtime) == 0) {
|
if (fd == NULL || fs->stat(path, &size, &mtime) == 0) {
|
||||||
LOG(LL_DEBUG, ("404 [%.*s] %p", (int) hm->uri.len, hm->uri.ptr, fd));
|
LOG(LL_DEBUG, ("404 [%s] %p", path, (void *) fd));
|
||||||
mg_http_reply(c, 404, "", "%s", "Not found\n");
|
mg_http_reply(c, 404, "", "%s", "Not found\n");
|
||||||
fs->close(fd);
|
fs->close(fd);
|
||||||
// NOTE: mg_http_etag() call should go first!
|
// NOTE: mg_http_etag() call should go first!
|
||||||
|
Loading…
Reference in New Issue
Block a user