You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the error handling function that is decorated by the error handler, a redirect to another function, which should then return a status of 200, cannot do so. The check on line 53 of flask_httpauth.py prevents the user from setting status code 200.
def get_public_data(status):
...
return ("OK", 200) # status code reset to 401
@auth.error_handler
def auth_error_handler(status):
if request.method == 'GET':
return get_public_data(status) # cannot set response status code to 200
else:
return ({"Error": "Unauthorized Access"}, status)
The text was updated successfully, but these errors were encountered:
Within the error handling function that is decorated by the error handler, a redirect to another function, which should then return a status of 200, cannot do so. The check on line 53 of flask_httpauth.py prevents the user from setting status code 200.
The text was updated successfully, but these errors were encountered: