mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 20:24:21 -06:00
do not free buffer with cache header before it would be written,
it seems this affected header only FastCGI responses only: proxied header only responses were cached right
This commit is contained in:
parent
fd5db1eb62
commit
63d0bea178
@ -397,7 +397,7 @@ ngx_event_pipe_read_upstream(ngx_event_pipe_t *p)
|
|||||||
|
|
||||||
p->free_raw_bufs = p->free_raw_bufs->next;
|
p->free_raw_bufs = p->free_raw_bufs->next;
|
||||||
|
|
||||||
if (p->free_bufs) {
|
if (p->free_bufs && p->buf_to_file == NULL) {
|
||||||
for (cl = p->free_raw_bufs; cl; cl = cl->next) {
|
for (cl = p->free_raw_bufs; cl; cl = cl->next) {
|
||||||
if (cl->buf->shadow == NULL) {
|
if (cl->buf->shadow == NULL) {
|
||||||
ngx_pfree(p->pool, cl->buf->start);
|
ngx_pfree(p->pool, cl->buf->start);
|
||||||
|
Loading…
Reference in New Issue
Block a user