Movatterモバイル変換


[0]ホーム

URL:


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

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

Commit7cb5656

Browse files
authored
Prevent overwriting Authorization with basic auth (#901)
1 parent2c3d49c commit7cb5656

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎influxdb/client.py‎

Lines changed: 4 additions & 1 deletion
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
whileretry:
338338
try:
339-
auth= (self._username,self._password)
339+
if"Authorization"inheaders:
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)

[8]ページ先頭

©2009-2025 Movatter.jp