We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServeHTTP
err == nil
response
mps/tunnel_handler.go
Line 50 in 5a2b7e7
statusCode = 407
1
mps/middleware/basicAuth.go
Line 22 in 5a2b7e7
是我用的方法不对吗?还是说这里逻辑有问题??
The text was updated successfully, but these errors were encountered:
确实 这里的逻辑有问题
Sorry, something went wrong.
No branches or pull requests
ServeHTTP
中运行中间件后,如果err == nil
,不管response
返回什么状态码都不会终止连接目标服务器参考:
mps/tunnel_handler.go
Line 50 in 5a2b7e7
statusCode = 407
但是由于1
,这个响应会被忽略,继续连接目标服务器参考:
mps/middleware/basicAuth.go
Line 22 in 5a2b7e7
是我用的方法不对吗?还是说这里逻辑有问题??
The text was updated successfully, but these errors were encountered: