Skip to content

Navigation Menu

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.

Commit 7cb5656

Browse filesBrowse files
authored
Prevent overwriting Authorization with basic auth (#901)
1 parent 2c3d49c commit 7cb5656
Copy full SHA for 7cb5656

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎influxdb/client.py

Copy file name to clipboardExpand all lines: influxdb/client.py
+4-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,10 @@ def request(self, url, method='GET', params=None, data=None, stream=False,
336336
_try = 0
337337
while retry:
338338
try:
339-
auth = (self._username, self._password)
339+
if "Authorization" in headers:
340+
auth = (None, None)
341+
else:
342+
auth = (self._username, self._password)
340343
response = self._session.request(
341344
method=method,
342345
url=url,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.