[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(
|
r = requests.put(
|
||||||
url=url,
|
url=url,
|
||||||
files=files,
|
files=files,
|
||||||
# auth=settings.upload_auth
|
auth=settings.upload_auth
|
||||||
auth=('uploader', '1207690962638465')
|
|
||||||
)
|
)
|
||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
return url
|
return url
|
||||||
|
|||||||
Reference in new issue
Block a user