]> git.kaiwu.me - nginx.git/commitdiff
Merge of r4423: fixed proxy_redirect off inheritance.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 5 Mar 2012 11:47:25 +0000 (11:47 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 5 Mar 2012 11:47:25 +0000 (11:47 +0000)
src/http/modules/ngx_http_proxy_module.c

index 6a1bfc758a4789b12872b1266b882b3f0e594af2..26626ee578880986f0a63102a93cb8d1bb9dd511 100644 (file)
@@ -2496,6 +2496,8 @@ ngx_http_proxy_redirect(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         return NGX_CONF_OK;
     }
 
+    plcf->redirect = 1;
+
     value = cf->args->elts;
 
     if (cf->args->nelts == 2) {