comparison src/http/ngx_http_file_cache.c @ 3369:479468a7d982

fix handling cached HTTP/0.9 response
author Igor Sysoev <igor@sysoev.ru>
date Sun, 29 Nov 2009 20:48:01 +0000
parents 04cfc09b8b8d
children 8e407e7c899e
comparison
equal deleted inserted replaced
3368:75b96847351a 3369:479468a7d982
336 336
337 if (n < 0) { 337 if (n < 0) {
338 return n; 338 return n;
339 } 339 }
340 340
341 if ((size_t) n <= c->header_start) { 341 if ((size_t) n < c->header_start) {
342 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, 342 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
343 "cache file \"%s\" is too small", c->file.name.data); 343 "cache file \"%s\" is too small", c->file.name.data);
344 return NGX_ERROR; 344 return NGX_ERROR;
345 } 345 }
346 346