Skip to content

Commit 651c03a

Browse files
committed
Replace BaseResponse to Response class (new werkzeug version 2.1.0)
1 parent f8ec666 commit 651c03a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httpbin/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from six.moves import range as xrange
3030
from werkzeug.datastructures import WWWAuthenticate, MultiDict
3131
from werkzeug.http import http_date
32-
from werkzeug.wrappers import BaseResponse
32+
from werkzeug.wrappers import Response as WzResponse
3333
from werkzeug.http import parse_authorization_header
3434
from flasgger import Swagger, NO_SANITIZER
3535

@@ -77,7 +77,7 @@ def jsonify(*args, **kwargs):
7777

7878

7979
# Prevent WSGI from correcting the casing of the Location header
80-
BaseResponse.autocorrect_location_header = False
80+
WzResponse.autocorrect_location_header = False
8181

8282
# Find the correct template folder when running from a different location
8383
tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "templates")

0 commit comments

Comments
 (0)