initial commit
This commit is contained in:
26
angie/autoconf/http-request-headers-basic.conf.j2
Normal file
26
angie/autoconf/http-request-headers-basic.conf.j2
Normal file
@@ -0,0 +1,26 @@
|
||||
map $http_upgrade
|
||||
$req_connection
|
||||
{
|
||||
default upgrade;
|
||||
"" "";
|
||||
}
|
||||
|
||||
map $http_user_agent
|
||||
$req_user_agent
|
||||
{
|
||||
default $http_user_agent;
|
||||
{%- if env.NGX_HTTP_FAKE_UA %}
|
||||
## merely fake
|
||||
"" {{ env.NGX_HTTP_FAKE_UA | ngx_esc }};
|
||||
{%- else %}
|
||||
"" "Angie/$angie_version";
|
||||
{%- endif %}
|
||||
}
|
||||
|
||||
map $http_accept
|
||||
$req_accept
|
||||
{
|
||||
volatile;
|
||||
default $http_accept;
|
||||
"" "*/*";
|
||||
}
|
Reference in New Issue
Block a user