mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 12:57:56 +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:
parent
990f243f15
commit
b330b2c157
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user