Skip to content

Commit 9b00093

Browse files
committed
Fix basic auth condition
1 parent 0f78e74 commit 9b00093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxy/http/proxy/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def before_upstream_connection(
3535
raise ProxyAuthenticationFailed()
3636
parts = request.headers[b'proxy-authorization'][1].split()
3737
if len(parts) != 2 \
38-
and parts[0].lower() != b'basic' \
39-
and parts[1] != self.flags.auth_code:
38+
or parts[0].lower() != b'basic' \
39+
or parts[1] != self.flags.auth_code:
4040
raise ProxyAuthenticationFailed()
4141
return request
4242

0 commit comments

Comments
 (0)