mirror of
https://github.com/fatedier/frp.git
synced 2024-12-13 18:21:14 +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 {
|
func getBadResponse() *http.Response {
|
||||||
header := make(map[string][]string)
|
header := make(map[string][]string)
|
||||||
header["Proxy-Authenticate"] = []string{"Basic"}
|
header["Proxy-Authenticate"] = []string{"Basic"}
|
||||||
|
header["Connection"] = []string{"close"}
|
||||||
res := &http.Response{
|
res := &http.Response{
|
||||||
Status: "407 Not authorized",
|
Status: "407 Not authorized",
|
||||||
StatusCode: 407,
|
StatusCode: 407,
|
||||||
|
Loading…
Reference in New Issue
Block a user