Style: use ngx_str_set().

This commit is contained in:
Tatsuhiko Kubo 2014-07-09 23:23:59 +09:00
parent ef2b59699a
commit cc870236b2

View File

@ -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;
}