Fixed unrecognized case sensitive headers during auth
This commit is contained in:
parent
5a50c06588
commit
d9f9fcc147
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ path = os.path.dirname(os.path.realpath(__file__)) + os.sep
|
|||
|
||||
def is_browser(headers: CaseInsensitiveDict) -> bool:
|
||||
browser_structure = {"authorization", "cookie"}
|
||||
return browser_structure.issubset(headers.keys())
|
||||
return all(key in headers for key in browser_structure)
|
||||
|
||||
|
||||
def setup_browser(filepath=None, headers_raw=None):
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ def is_oauth(headers: CaseInsensitiveDict) -> bool:
|
|||
"token_type",
|
||||
"refresh_token",
|
||||
}
|
||||
return oauth_structure.issubset(headers.keys())
|
||||
return all(key in headers for key in oauth_structure)
|
||||
|
||||
|
||||
class YTMusicOAuth:
|
||||
|
|
|
|||
Loading…
Reference in a new issue