瀏覽代碼

add more default headers

Darien Raymond 9 年之前
父節點
當前提交
edc5bbbb72
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      tools/conf/transport_authenticators.go

+ 16 - 0
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"},
+			},
 		},
 	}