We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ec666 commit 651c03aCopy full SHA for 651c03a
1 file changed
httpbin/core.py
@@ -29,7 +29,7 @@
29
from six.moves import range as xrange
30
from werkzeug.datastructures import WWWAuthenticate, MultiDict
31
from werkzeug.http import http_date
32
-from werkzeug.wrappers import BaseResponse
+from werkzeug.wrappers import Response as WzResponse
33
from werkzeug.http import parse_authorization_header
34
from flasgger import Swagger, NO_SANITIZER
35
@@ -77,7 +77,7 @@ def jsonify(*args, **kwargs):
77
78
79
# Prevent WSGI from correcting the casing of the Location header
80
-BaseResponse.autocorrect_location_header = False
+WzResponse.autocorrect_location_header = False
81
82
# Find the correct template folder when running from a different location
83
tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "templates")
0 commit comments