diff --git a/docs/xml/nginx/changes.xml b/docs/xml/nginx/changes.xml index c92d881f4..b56b1e631 100644 --- a/docs/xml/nginx/changes.xml +++ b/docs/xml/nginx/changes.xml @@ -9,6 +9,72 @@ nginx changelog + + + + +переменная scheme. + + +the "scheme" variable. + + + + + +директива expires поддерживает параметр max. + + +the "expires" directive supports the "max" parameter. + + + + + +директива include поддерживает маску "*".
+Спасибо Jonathan Dance. +
+ +the "include" directive supports the "*" mask.
+Thanks to Jonathan Dance. +
+
+ + + +директива return всегда изменяла код ответа, перенаправленного +директивой error_page. + + +the "return" directive always overrode the "error_page" response code +redirected by the "error_page" directive. + + + + + +происходил segmentation fault, если в методе PUT передавалось +тело нулевой длины. + + +a segmentation fault occurred if zero-length body was in PUT method. + + + + + +при использовании переменных в директиве proxy_redirect редирект +изменялся неверно. + + +the redirect was changed incorrectly if the variables were used +in the "proxy_redirect" directive. + + + +
+ + diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 7dc9cc146..e6db0b7c6 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -786,7 +786,7 @@ ngx_http_variable_scheme(ngx_http_request_t *r, v->valid = 1; v->no_cachable = 0; v->not_found = 0; - v->data = "https"; + v->data = (u_char *) "https"; return NGX_OK; } @@ -797,7 +797,7 @@ ngx_http_variable_scheme(ngx_http_request_t *r, v->valid = 1; v->no_cachable = 0; v->not_found = 0; - v->data = "http"; + v->data = (u_char *) "http"; return NGX_OK; }