Skip to content

Commit

Permalink
Fix failing type check in HostHeaderSSLAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
NyanKiyoshi committed Dec 2, 2024
1 parent 812e4c8 commit 2da42e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requests_hardened/host_header_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class HostHeaderSSLAdapter(HTTPAdapter):
"""

def send(self, request, **kwargs):
def send(self, request, *args, **kwargs):
# HTTP headers are case-insensitive (RFC 7230)
host_header = None
for header in request.headers:
Expand All @@ -54,4 +54,4 @@ def send(self, request, **kwargs):
connection_pool_kwargs.pop("assert_hostname", None)
connection_pool_kwargs.pop("server_hostname", None)

return super().send(request, **kwargs)
return super().send(request, *args, **kwargs)

0 comments on commit 2da42e8

Please sign in to comment.