fix zero length static response, the bug was introduced in r2378

This commit is contained in:
Igor Sysoev 2008-12-11 15:57:14 +00:00
parent 371766c0a5
commit ac662fbe1b

View File

@ -217,7 +217,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
if (of.size == 0) {
if (r != r->main && of.size == 0) {
return ngx_http_send_header(r);
}