The upload web page return a 200 in case of error

Otherwise IE doesn't display error messages...

Fix #132
This commit is contained in:
Julien Duponchelle 2015-04-01 21:46:23 +02:00
parent 990f243f15
commit b330b2c157

View File

@ -76,7 +76,7 @@ class UploadHandler:
os.chmod(destination_path, st.st_mode | stat.S_IXUSR)
except OSError as e:
response.html("Could not upload file: {}".format(e))
response.set_status(500)
response.set_status(200)
return
response.redirect("/upload")