From e15fa11007d3f6f03c41522d026e45d086d416f1 Mon Sep 17 00:00:00 2001 From: fzhyzamt Date: Mon, 15 Jun 2020 17:26:59 +0800 Subject: [PATCH] Clients that support non-preemptive authentication example client: okhttp <= 3.11.0 --- 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 b0ca9231..d0dc3e93 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,