fix prefetch-proxy configuration

Seems there is an issue with these changes. This is what the output of `https://www.example.com/.well-known/traffic-advice` looks like with WO 3.15.3 :
```
[\{
 "user_agent": "prefetch-proxy",
 "google_prefetch_proxy_eap": \{
 "fraction": 1.0
 \}
\}]
```
**Here is the expected output for a valid configuration**:
```
[{
 "user_agent": "prefetch-proxy",
 "google_prefetch_proxy_eap": {
 "fraction": 1.0
 }
}]
```
This commit is contained in:
Narender Chopra
2022-10-24 22:40:35 +05:30
committed by GitHub
parent 1cf377cc99
commit 67a5b18d25

View File

@@ -41,7 +41,7 @@ location /.well-known/acme-challenge/ {
# https://developer.chrome.com/blog/private-prefetch-proxy/
location /.well-known/traffic-advice {
types { } default_type "application/trafficadvice+json; charset=utf-8";
return 200 "[\{\n \"user_agent\": \"prefetch-proxy\",\n \"google_prefetch_proxy_eap\": \{\n \"fraction\": 1.0\n \}\n\}]";
return 200 "[{\n \"user_agent\": \"prefetch-proxy\",\n \"google_prefetch_proxy_eap\": {\n \"fraction\": 1.0\n }\n}]";
allow all;
}
# Return 403 forbidden for readme.(txt|html) or license.(txt|html) or example.(txt|html) or other common git repository files