mirror of
https://github.com/fatedier/frp.git
synced 2024-12-13 10:11:04 +01:00
support non-preemptive authentication (#1888)
This commit is contained in:
parent
b23548eeff
commit
b1181fd17a
@ -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