From b1181fd17afca5b681cfc50ff4f1c9e103d72baf Mon Sep 17 00:00:00 2001 From: fzhyzamt Date: Wed, 1 Jul 2020 11:18:23 +0800 Subject: [PATCH] support non-preemptive authentication (#1888) --- models/plugin/client/http_proxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/plugin/client/http_proxy.go b/models/plugin/client/http_proxy.go index b2f4362f..08600820 100644 --- a/models/plugin/client/http_proxy.go +++ b/models/plugin/client/http_proxy.go @@ -231,6 +231,7 @@ func removeProxyHeaders(req *http.Request) { func getBadResponse() *http.Response { header := make(map[string][]string) header["Proxy-Authenticate"] = []string{"Basic"} + header["Connection"] = []string{"close"} res := &http.Response{ Status: "407 Not authorized", StatusCode: 407,