Skip to content

Commit

Permalink
Replace BaseResponse to Response class (new werkzeug version 2.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximino-dev committed Sep 15, 2022
1 parent f8ec666 commit 651c03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpbin/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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 as WzResponse
from werkzeug.http import parse_authorization_header
from flasgger import Swagger, NO_SANITIZER

Expand Down Expand Up @@ -77,7 +77,7 @@ def jsonify(*args, **kwargs):


# Prevent WSGI from correcting the casing of the Location header
BaseResponse.autocorrect_location_header = False
WzResponse.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")
Expand Down

0 comments on commit 651c03a

Please sign in to comment.