Remove the deprecated 'is_xhr' parameter of flask.request object.

This commit is contained in:
Akshay Joshi 2020-02-10 12:31:52 +05:30
parent bf88ff1076
commit 2ae279a382

View File

@ -352,7 +352,7 @@ def pga_unauthorised():
else:
login_message = lm.login_message
if not lm.login_view or request.is_xhr:
if not lm.login_view:
# Only 401 is not enough to distinguish pgAdmin login is required.
# There are other cases when we return 401. For eg. wrong password
# supplied while connecting to server.