Improve performance when reading data after upload. See #31

This commit is contained in:
Matt Martz 2013-08-23 09:31:09 -05:00
parent cbb249b96d
commit 2abf94d46c
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ class FilePutter(threading.Thread):
try: try:
if (time.time() - self.starttime) <= 10: if (time.time() - self.starttime) <= 10:
f = urlopen(self.url, self.data) f = urlopen(self.url, self.data)
contents = f.read() f.read(11)
f.close() f.close()
self.result = len(self.data) self.result = len(self.data)
else: else: