--- httpbin/core.py.orig 2018-05-08 07:41:03.000000000 -0400 +++ httpbin/core.py 2022-05-31 11:07:42.000000000 -0400 @@ -19,7 +19,7 @@ from six.moves import range as xrange from werkzeug.datastructures import WWWAuthenticate, MultiDict from werkzeug.http import http_date -from werkzeug.wrappers import BaseResponse +from werkzeug.wrappers import Response from werkzeug.http import parse_authorization_header from raven.contrib.flask import Sentry @@ -48,7 +48,7 @@ return response # Prevent WSGI from correcting the casing of the Location header -BaseResponse.autocorrect_location_header = False +Response.autocorrect_location_header = False # Find the correct template folder when running from a different location tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates')