fix fd leak in static action when 304 is returned
This commit is contained in:
parent
0e03d1a362
commit
7dd842229f
|
@ -265,6 +265,7 @@ static handler_t core_handle_static(vrequest *vr, gpointer param, gpointer *cont
|
|||
etag_set_header(vr, &sce->data.st, &cachable);
|
||||
if (cachable) {
|
||||
vr->response.http_status = 304;
|
||||
close(fd);
|
||||
return HANDLER_GO_ON;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue