mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02: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:
1 parent
990f243f15
commit
b330b2c157
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user