mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
Fix #1331 - add comment about order of operations in conn_close()
This commit is contained in:
1 parent
c2c6ff11ed
commit
47ce072af7
3 files changed
+14
-10
No files matched your search
@@ -573,6 +573,7 @@ void mg_http_serve_file(struct mg_connection *c, struct mg_http_message *hm,
|
||||
status, mg_http_status_code_str(status), (int) mime.len, mime.ptr,
|
||||
etag, cl, range, opts->extra_headers ? opts->extra_headers : "");
|
||||
if (mg_vcasecmp(&hm->method, "HEAD") == 0) {
|
||||
c->is_draining = 1;
|
||||
fs->close(fd);
|
||||
} else {
|
||||
c->pfn = static_cb;
|
||||
|
||||
Reference in new issue
Block a user