Fix #1331 - add comment about order of operations in conn_close()

This commit is contained in:
Sergey Lyubka committed 2021-08-05 10:39:24 +01:00
1 parent c2c6ff11ed
commit 47ce072af7
3 files changed
+14 -10

No files matched your search

+1
View File
@@ -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;