Clients that support non-preemptive authentication
example client: okhttp <= 3.11.0
This commit is contained in:
parent
2406ecdfea
commit
e15fa11007
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user