add more default headers

pull/314/head
Darien Raymond 2016-11-06 13:55:06 +01:00
parent 66e8090d3a
commit edc5bbbb72
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 16 additions and 0 deletions

View File

@ -60,6 +60,14 @@ func (this *HTTPAuthenticatorRequest) Build() (*http.RequestConfig, error) {
Name: "Accept-Encoding",
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",
Value: []string{"chunked"},
},
{
Name: "Connection",
Value: []string{"keep-alive"},
},
{
Name: "Pragma",
Value: []string{"no-cache"},
},
},
}