mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
fix: add condition before set authorization header
This commit is contained in:
parent
0cb999dc14
commit
89ca195a69
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ class BaseSession:
|
||||||
|
|
||||||
headers = headers.copy()
|
headers = headers.copy()
|
||||||
headers.setdefault('User-Agent', ua)
|
headers.setdefault('User-Agent', ua)
|
||||||
headers.setdefault('Authorization', httpt)
|
if httpt is not None:
|
||||||
|
headers.setdefault('Authorization', httpt)
|
||||||
|
|
||||||
for i in range(1, t+1):
|
for i in range(1, t+1):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue