From b330b2c157fe94fa3f4e1b5d749def49793ae60b Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 1 Apr 2015 21:46:23 +0200 Subject: [PATCH] The upload web page return a 200 in case of error Otherwise IE doesn't display error messages... Fix #132 --- gns3server/handlers/upload_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/handlers/upload_handler.py b/gns3server/handlers/upload_handler.py index a3995f5a..22d83b2c 100644 --- a/gns3server/handlers/upload_handler.py +++ b/gns3server/handlers/upload_handler.py @@ -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")