diff src/http/modules/ngx_http_static_module.c @ 134:1898c6d03d90 NGINX_0_3_14

nginx 0.3.14 *) Bugfix: in the 304 response the body was transferred; bug appeared in 0.3.13.
author Igor Sysoev <http://sysoev.ru>
date Mon, 05 Dec 2005 00:00:00 +0300
parents 91372f004adf
children 3656228c0b56
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -264,7 +264,7 @@ ngx_http_static_handler(ngx_http_request
 
     rc = ngx_http_send_header(r);
 
-    if (rc == NGX_ERROR || rc > NGX_OK) {
+    if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
         return rc;
     }