comparison src/http/modules/ngx_http_range_filter_module.c @ 657:400711951595 release-0.3.50

nginx-0.3.50-RELEASE import *) Change: the "proxy_redirect_errors" and "fastcgi_redirect_errors" directives was renamed to the "proxy_intercept_errors" and "fastcgi_intercept_errors" directives. *) Feature: the ngx_http_charset_module supports the recoding from the single byte encodings to the UTF-8 encoding and back. *) Feature: the "X-Accel-Charset" response header line is supported in proxy and FastCGI mode. *) Bugfix: the "\" escape symbol in the "\"" and "\'" pairs in the SSI command was removed only if the command also has the "$" symbol. *) Bugfix: the "<!--" string might be added on some conditions in the SSI after inclusion. *) Bugfix: if the "Content-Length: 0" header line was in response, then in nonbuffered proxying mode the client connection was not closed.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 28 Jun 2006 16:00:26 +0000
parents 9262f520ce21
children 7e24168b0853
comparison
equal deleted inserted replaced
656:97f36f8e65dd 657:400711951595
143 143
144 if (r->headers_in.range == NULL 144 if (r->headers_in.range == NULL
145 || r->headers_in.range->value.len < 7 145 || r->headers_in.range->value.len < 7
146 || ngx_strncasecmp(r->headers_in.range->value.data, "bytes=", 6) != 0) 146 || ngx_strncasecmp(r->headers_in.range->value.data, "bytes=", 6) != 0)
147 { 147 {
148
149 r->headers_out.accept_ranges = ngx_list_push(&r->headers_out.headers); 148 r->headers_out.accept_ranges = ngx_list_push(&r->headers_out.headers);
150 if (r->headers_out.accept_ranges == NULL) { 149 if (r->headers_out.accept_ranges == NULL) {
151 return NGX_ERROR; 150 return NGX_ERROR;
152 } 151 }
153 152