mirror of
https://github.com/nginx/nginx.git
synced 2024-12-11 17:59:00 +08:00
Style: use ngx_str_set().
This commit is contained in:
parent
ef2b59699a
commit
cc870236b2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user