浏览代码

support non-preemptive authentication (#1888)

fzhyzamt 4 年之前
父节点
当前提交
b1181fd17a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      models/plugin/client/http_proxy.go

+ 1 - 0
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,