comparison 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
comparison
equal deleted inserted replaced
133:e7ac35c352cb 134:1898c6d03d90
262 return NGX_HTTP_INTERNAL_SERVER_ERROR; 262 return NGX_HTTP_INTERNAL_SERVER_ERROR;
263 } 263 }
264 264
265 rc = ngx_http_send_header(r); 265 rc = ngx_http_send_header(r);
266 266
267 if (rc == NGX_ERROR || rc > NGX_OK) { 267 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
268 return rc; 268 return rc;
269 } 269 }
270 270
271 b->file_pos = 0; 271 b->file_pos = 0;
272 b->file_last = ngx_file_size(&fi); 272 b->file_last = ngx_file_size(&fi);