-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
- 在几个代理的
ServeHTTP中运行中间件后,如果err == nil,不管response返回什么状态码都不会终止连接目标服务器
参考:
Line 50 in 5a2b7e7
if err != nil && err != MethodNotSupportErr { - 在 BasicAuth 中间件中,如果验证不通过,会返回
statusCode = 407但是由于1,这个响应会被忽略,继续连接目标服务器
参考:
Line 22 in 5a2b7e7
return BasicUnauthorized(req, realm), nil
是我用的方法不对吗?还是说这里逻辑有问题??
Metadata
Metadata
Assignees
Labels
No labels