diff --git a/examples/http_auth_server.yaml b/examples/http_auth_server.yaml index cef4c13..bbb7261 100644 --- a/examples/http_auth_server.yaml +++ b/examples/http_auth_server.yaml @@ -1,7 +1,7 @@ # HTTP 代理服务器配置示例 - 带用户名密码认证 net: direct: - type: direct + type: local server: http: type: http diff --git a/rd-std/src/http/server.rs b/rd-std/src/http/server.rs index a22b624..e168f50 100644 --- a/rd-std/src/http/server.rs +++ b/rd-std/src/http/server.rs @@ -144,7 +144,7 @@ async fn proxy( // 验证认证信息 if !verify_auth( req.headers() - .get("Authorization") + .get(hyper::http::header::PROXY_AUTHORIZATION) .map(|h| h.to_str().unwrap_or("")), username, password,