diff options
author | Tatsuhiko Kubo <cubicdaiya@gmail.com> | 2014-07-09 23:23:59 +0900 |
---|---|---|
committer | Tatsuhiko Kubo <cubicdaiya@gmail.com> | 2014-07-09 23:23:59 +0900 |
commit | cc870236b2f3223b1db67346e70a8b29183208e6 (patch) | |
tree | 5e14b0910d2f5fbfa506582303834f26b23877d5 /src/http/modules/ngx_http_memcached_module.c | |
parent | ef2b59699aeb7cb032febf83b233b656b97a0e35 (diff) | |
download | nginx-cc870236b2f3223b1db67346e70a8b29183208e6.tar.gz nginx-cc870236b2f3223b1db67346e70a8b29183208e6.zip |
Style: use ngx_str_set().
Diffstat (limited to 'src/http/modules/ngx_http_memcached_module.c')
-rw-r--r-- | src/http/modules/ngx_http_memcached_module.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c index aaa047e8f..bda038da4 100644 --- a/src/http/modules/ngx_http_memcached_module.c +++ b/src/http/modules/ngx_http_memcached_module.c @@ -380,11 +380,8 @@ found: } h->hash = 1; - h->key.len = sizeof("Content-Encoding") - 1; - h->key.data = (u_char *) "Content-Encoding"; - h->value.len = sizeof("gzip") - 1; - h->value.data = (u_char *) "gzip"; - + ngx_str_set(&h->key, "Content-Encoding"); + ngx_str_set(&h->value, "gzip"); r->headers_out.content_encoding = h; } |