File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,7 @@ def default_headers(self) -> dict[str, str | Omit]:
221221
222222 @override
223223 def _validate_headers (self , headers : Headers , custom_headers : Headers ) -> None :
224- if self .private_key and self .password and headers .get ("Authorization" ):
225- return
226- if isinstance (custom_headers .get ("Authorization" ), Omit ):
224+ if headers .get ("Authorization" ) or isinstance (custom_headers .get ("Authorization" ), Omit ):
227225 return
228226
229227 raise TypeError (
@@ -485,9 +483,7 @@ def default_headers(self) -> dict[str, str | Omit]:
485483
486484 @override
487485 def _validate_headers (self , headers : Headers , custom_headers : Headers ) -> None :
488- if self .private_key and self .password and headers .get ("Authorization" ):
489- return
490- if isinstance (custom_headers .get ("Authorization" ), Omit ):
486+ if headers .get ("Authorization" ) or isinstance (custom_headers .get ("Authorization" ), Omit ):
491487 return
492488
493489 raise TypeError (
You can’t perform that action at this time.
0 commit comments