Mercurial > hg > nginx
diff src/http/modules/ngx_http_memcached_module.c @ 5765:d80543940f9a
Style: use ngx_str_set().
author | Tatsuhiko Kubo <cubicdaiya@gmail.com> |
---|---|
date | Wed, 09 Jul 2014 23:23:59 +0900 |
parents | 2fda9065d0f4 |
children | ab48149b77a6 |
line wrap: on
line diff
--- 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; }