Skip to content
New issue

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

send_request should not update _default_headers #439

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
send_request should not update _default_headers
tanoda authored Mar 18, 2025
commit 2df0b4b565799ca4f78c31f95aa8b190142ee815
4 changes: 2 additions & 2 deletions okta/http_client.py
Original file line number Diff line number Diff line change
@@ -65,11 +65,11 @@ async def send_request(self, request):
try:
logger.debug(f"Request: {request}")
# Set headers
self._default_headers.update(request["headers"])
headers = {**self._default_headers, **request["headers"]}
# Prepare request parameters
params = {'method': request['method'],
'url': request['url'],
'headers': self._default_headers}
'headers': headers}
if request['data']:
params['data'] = json.dumps(request['data'])
elif request['form']: