srht: Fixed logic error in submit.py

This commit is contained in:
Martijn Braam 2018-12-14 14:56:24 +01:00
parent 76889851be
commit 4631c2c879

View file

@ -54,7 +54,7 @@ else:
for file in args.datafile:
filename = os.path.basename(file)
# Send contents of file as HTTP POST with multipart/formdata payload
files.append(('file[]', (filename, open(args.datafile, 'rb'), 'application/octet-stream')))
files.append(('file[]', (filename, open(file, 'rb'), 'application/octet-stream')))
print('Uploading {} to {}'.format(filename, url))