Skip to content

Commit

Permalink
Remove deprecated request.is_xhr
Browse files Browse the repository at this point in the history
This was removed from `werkzeug` `1.0.0`.

Details:
* pallets/werkzeug#1077
* pallets/werkzeug#1714 (search for `is_xhr`)

Fix #144.
  • Loading branch information
jeffwidman committed Feb 18, 2020
1 parent 9c7db48 commit 7ce099c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flask_debugtoolbar/__init__.py
Expand Up @@ -178,8 +178,7 @@ def process_response(self, response):
# Intercept http redirect codes and display an html page with a
# link to the target.
if current_app.config['DEBUG_TB_INTERCEPT_REDIRECTS']:
if (response.status_code in self._redirect_codes and
not real_request.is_xhr):
if response.status_code in self._redirect_codes:
redirect_to = response.location
redirect_code = response.status_code
if redirect_to:
Expand Down

0 comments on commit 7ce099c

Please sign in to comment.