Ticket #756: nginx-1.8.0.greedy-image.patch

File nginx-1.8.0.greedy-image.patch, 776 bytes (added by Dan Podeanu, 11 years ago)
  • src/http/modules/ngx_http_image_filter_module.c

    diff -ruN nginx-1.8.0.orig/src/http/modules/ngx_http_image_filter_module.c nginx-1.8.0/src/http/modules/ngx_http_image_filter_module.c
    old new  
    317317                }
    318318            }
    319319
    320             return ngx_http_filter_finalize_request(r,
    321                                               &ngx_http_image_filter_module,
    322                                               NGX_HTTP_UNSUPPORTED_MEDIA_TYPE);
     320            /* wait to consume more data, do not give up on the request right away */
     321            return NGX_OK;
    323322        }
    324323
    325324        /* override content type */