Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Prevent overwriting Authorization with basic auth #901

Merged
merged 1 commit into from
Sep 9, 2021
Merged
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
5 changes: 4 additions & 1 deletion 5 influxdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,10 @@ def request(self, url, method='GET', params=None, data=None, stream=False,
_try = 0
while retry:
try:
auth = (self._username, self._password)
if "Authorization" in headers:
auth = (None, None)
else:
auth = (self._username, self._password)
response = self._session.request(
method=method,
url=url,
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.