mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-21 16:56:27 -05:00
add more default headers
This commit is contained in:
parent
66e8090d3a
commit
edc5bbbb72
@ -60,6 +60,14 @@ func (this *HTTPAuthenticatorRequest) Build() (*http.RequestConfig, error) {
|
|||||||
Name: "Accept-Encoding",
|
Name: "Accept-Encoding",
|
||||||
Value: []string{"gzip, deflate"},
|
Value: []string{"gzip, deflate"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "Connection",
|
||||||
|
Value: []string{"keep-alive"},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "Pragma",
|
||||||
|
Value: []string{"no-cache"},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,6 +114,14 @@ func (this *HTTPAuthenticatorResponse) Build() (*http.ResponseConfig, error) {
|
|||||||
Name: "Transfer-Encoding",
|
Name: "Transfer-Encoding",
|
||||||
Value: []string{"chunked"},
|
Value: []string{"chunked"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "Connection",
|
||||||
|
Value: []string{"keep-alive"},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "Pragma",
|
||||||
|
Value: []string{"no-cache"},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user