Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
5764:f166c521b619 | 5765:d80543940f9a |
---|---|
378 if (h == NULL) { | 378 if (h == NULL) { |
379 return NGX_ERROR; | 379 return NGX_ERROR; |
380 } | 380 } |
381 | 381 |
382 h->hash = 1; | 382 h->hash = 1; |
383 h->key.len = sizeof("Content-Encoding") - 1; | 383 ngx_str_set(&h->key, "Content-Encoding"); |
384 h->key.data = (u_char *) "Content-Encoding"; | 384 ngx_str_set(&h->value, "gzip"); |
385 h->value.len = sizeof("gzip") - 1; | |
386 h->value.data = (u_char *) "gzip"; | |
387 | |
388 r->headers_out.content_encoding = h; | 385 r->headers_out.content_encoding = h; |
389 } | 386 } |
390 | 387 |
391 length: | 388 length: |
392 | 389 |