mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +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->hash = 1;
|
||||||
h->key.len = sizeof("Content-Encoding") - 1;
|
ngx_str_set(&h->key, "Content-Encoding");
|
||||||
h->key.data = (u_char *) "Content-Encoding";
|
ngx_str_set(&h->value, "gzip");
|
||||||
h->value.len = sizeof("gzip") - 1;
|
|
||||||
h->value.data = (u_char *) "gzip";
|
|
||||||
|
|
||||||
r->headers_out.content_encoding = h;
|
r->headers_out.content_encoding = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user