From edc5bbbb72699d2fe3274e428ad40b870004334b Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 6 Nov 2016 13:55:06 +0100 Subject: [PATCH] add more default headers --- tools/conf/transport_authenticators.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/conf/transport_authenticators.go b/tools/conf/transport_authenticators.go index c43c1123e..b7fb80cd8 100644 --- a/tools/conf/transport_authenticators.go +++ b/tools/conf/transport_authenticators.go @@ -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"}, + }, }, }