diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-05-14 09:56:37 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-05-14 09:56:37 +0000 |
commit | 05b1a8f1e3595beab4397e25c2a6db9d832a6a97 (patch) | |
tree | 282923e87cbaf9d634dab4a7c69ce85d602effcf /src/http/ngx_http_variables.c | |
parent | 328df7a5cc91180fef3b1b58129e14bc79bef80b (diff) | |
download | nginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.gz nginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.zip |
ngx_str_set() and ngx_str_null()
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index c8d1c8dcb..0bba28128 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -1390,8 +1390,7 @@ ngx_http_variable_sent_location(ngx_http_request_t *r, return NGX_OK; } - name.len = sizeof("sent_http_location") - 1; - name.data = (u_char *) "sent_http_location"; + ngx_str_set(&name, "sent_http_location"); return ngx_http_variable_unknown_header(v, &name, &r->headers_out.headers.part, |