comparison src/http/modules/ngx_http_proxy_module.c @ 660:d0f7a625f27c NGINX_1_1_14

nginx 1.1.14 *) Feature: multiple "limit_req" limits may be used simultaneously. *) Bugfix: in error handling while connecting to a backend. Thanks to Piotr Sikora. *) Bugfix: in AIO error handling on FreeBSD. *) Bugfix: in the OpenSSL library initialization. *) Bugfix: the "proxy_redirect" directives might not be correctly inherited. *) Bugfix: memory leak during reconfiguration if the "pcre_jit" directive was used.
author Igor Sysoev <http://sysoev.ru>
date Mon, 30 Jan 2012 00:00:00 +0400
parents 5a4401b9551b
children e5fa0a4a7d27
comparison
equal deleted inserted replaced
659:d48f991d7bd0 660:d0f7a625f27c
1 1
2 /* 2 /*
3 * Copyright (C) Igor Sysoev 3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
4 */ 5 */
5 6
6 7
7 #include <ngx_config.h> 8 #include <ngx_config.h>
8 #include <ngx_core.h> 9 #include <ngx_core.h>
3289 3290
3290 if (plcf->redirect == 0) { 3291 if (plcf->redirect == 0) {
3291 return NGX_CONF_OK; 3292 return NGX_CONF_OK;
3292 } 3293 }
3293 3294
3295 plcf->redirect = 1;
3296
3294 value = cf->args->elts; 3297 value = cf->args->elts;
3295 3298
3296 if (cf->args->nelts == 2) { 3299 if (cf->args->nelts == 2) {
3297 if (ngx_strcmp(value[1].data, "off") == 0) { 3300 if (ngx_strcmp(value[1].data, "off") == 0) {
3298 plcf->redirect = 0; 3301 plcf->redirect = 0;