comparison src/http/ngx_http_upstream.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 98f49b2bcae8
children ac9c0380337d
comparison
equal deleted inserted replaced
3368:75b96847351a 3369:479468a7d982
750 ngx_http_cache_t *c; 750 ngx_http_cache_t *c;
751 751
752 r->cached = 1; 752 r->cached = 1;
753 c = r->cache; 753 c = r->cache;
754 754
755 if (c->header_start == c->body_start) {
756 r->http_version = NGX_HTTP_VERSION_9;
757 return ngx_http_cache_send(r);
758 }
759
755 /* TODO: cache stack */ 760 /* TODO: cache stack */
756 761
757 u->buffer = *c->buf; 762 u->buffer = *c->buf;
758 u->buffer.pos += c->header_start; 763 u->buffer.pos += c->header_start;
759 764