Ensure fancyindex is sending NGX_HTTP_OK (200) as the status vs HTTP_OK which is 0. Without this, connections sit waiting forever.

pull/4/head
David\ Beitey 2013-04-19 11:10:44 +10:00
parent 2034d0ad35
commit aba75b3c45
1 changed files with 1 additions and 1 deletions

View File

@ -762,7 +762,7 @@ ngx_http_fancyindex_handler(ngx_http_request_t *r)
out[0].buf->last_in_chain = 1;
r->headers_out.status = NGX_OK;
r->headers_out.status = NGX_HTTP_OK;
r->headers_out.content_type_len = ngx_sizeof_ssz("text/html");
r->headers_out.content_type.len = ngx_sizeof_ssz("text/html");
r->headers_out.content_type.data = (u_char *) "text/html";