[Sync] request uses auth from config instead of literal
This commit is contained in:
1 parent
ec745b60b2
commit
f00ff0cb7d
1 file changed
+1
-2
@@ -20,8 +20,7 @@ async def upload(url, path):
|
||||
r = requests.put(
|
||||
url=url,
|
||||
files=files,
|
||||
# auth=settings.upload_auth
|
||||
auth=('uploader', '1207690962638465')
|
||||
auth=settings.upload_auth
|
||||
)
|
||||
if r.status_code == 200:
|
||||
return url
|
||||
|
||||
Reference in new issue
Block a user