1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-25 01:38:08 +00:00

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) os.chmod(destination_path, st.st_mode | stat.S_IXUSR)
except OSError as e: except OSError as e:
response.html("Could not upload file: {}".format(e)) response.html("Could not upload file: {}".format(e))
response.set_status(500) response.set_status(200)
return return
response.redirect("/upload") response.redirect("/upload")