Upgrade pyexcel-io, which also upgrades Werkzeug

Upgraded pyexcel-io from 0.5.14 to 0.5.16. This change causes Werkzeug
to be upgraded from 0.14.1 to 0.15.1 which requires some changes:

* ProxyFix now needs to be imported from a different location
* The status code of RequestRedirect has changed from 301 to 308. Since
status code 308 is not currently supported on Internet Explorer with
Windows 7 and 8.1, this subclasses RequestRedirect to keep the status
code of 301.

changelog: https://werkzeug.palletsprojects.com/en/0.15.x/changes/#version-0-15-0
This commit is contained in:
Katie Smith
2019-03-21 16:41:22 +00:00
parent 307e959fd6
commit c675925fd1
8 changed files with 24 additions and 14 deletions

View File

@@ -634,7 +634,7 @@ def register_errorhandlers(application): # noqa (C901 too complex)
@application.errorhandler(WerkzeugHTTPException)
def handle_http_error(error):
if error.code == 301:
# RequestRedirect exception
# PermanentRedirect exception
return error
return _error_response(error.code)