summaryrefslogtreecommitdiff
path: root/src/core/ngx_buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_buf.c')
-rw-r--r--src/core/ngx_buf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_buf.c b/src/core/ngx_buf.c
index 31d990315..901c3f540 100644
--- a/src/core/ngx_buf.c
+++ b/src/core/ngx_buf.c
@@ -134,6 +134,12 @@ ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in)
}
while (in) {
+
+ if (ngx_buf_sync_only(in->buf)) {
+ in = in->next;
+ continue;
+ }
+
cl = ngx_alloc_chain_link(pool);
if (cl == NULL) {
return NGX_ERROR;