[Sync] request uses auth from config instead of literal

This commit is contained in:
Roman Timashev committed 2017-10-12 17:28:33 +03:00
1 parent ec745b60b2
commit f00ff0cb7d
1 file changed
+1 -2
+1 -2
View File
@@ -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