Mercurial > hg > nginx
comparison src/http/modules/ngx_http_rewrite_module.c @ 1189:5e1a8fe79c4b
allow to "set" $http_, $sent_http_, and $upstream_http_ variables
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 May 2007 19:58:45 +0000 |
parents | 9f983de19a1d |
children | 942e241c3b88 |
comparison
equal
deleted
inserted
replaced
1188:3edb63d62682 | 1189:5e1a8fe79c4b |
---|---|
933 index = ngx_http_get_variable_index(cf, &value[1]); | 933 index = ngx_http_get_variable_index(cf, &value[1]); |
934 if (index == NGX_ERROR) { | 934 if (index == NGX_ERROR) { |
935 return NGX_CONF_ERROR; | 935 return NGX_CONF_ERROR; |
936 } | 936 } |
937 | 937 |
938 if (v->get_handler == NULL) { | 938 if (v->get_handler == NULL |
939 && ngx_strncasecmp(value[1].data, "http_", 5) != 0 | |
940 && ngx_strncasecmp(value[1].data, "sent_http_", 10) != 0 | |
941 && ngx_strncasecmp(value[1].data, "upstream_http_", 14) != 0) | |
942 { | |
939 v->get_handler = ngx_http_rewrite_var; | 943 v->get_handler = ngx_http_rewrite_var; |
940 v->data = index; | 944 v->data = index; |
941 } | 945 } |
942 | 946 |
943 if (ngx_http_rewrite_value(cf, lcf, &value[2]) != NGX_CONF_OK) { | 947 if (ngx_http_rewrite_value(cf, lcf, &value[2]) != NGX_CONF_OK) { |