Merge pull request #37 from oschaaf/ngx-pagespeed-compatibility

Fix hang when combining fancyindex with ngx_pagespeed
pull/24/head
Adrian Perez 2016-02-10 15:46:00 +02:00
commit c8e9a9a158
1 changed files with 1 additions and 2 deletions

View File

@ -1038,8 +1038,7 @@ ngx_http_fancyindex_handler(ngx_http_request_t *r)
r->headers_out.content_type.data = (u_char *) "text/html";
rc = ngx_http_send_header(r);
if (rc != NGX_OK || r->header_only)
if (rc == NGX_ERROR || rc > NGX_OK || r->header_only)
return rc;
if (alcf->header.len > 0) {