Skip to content

Commit

Permalink
Do not read the request body (Fixes #138)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Oct 25, 2021
1 parent 7e5f9cf commit d8b5e37
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/flask_httpauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ def decorated(*args, **kwargs):
elif not self.authorize(role, user, auth):
status = 403
if not optional and status:
# Clear TCP receive buffer of any pending data
request.data
try:
return self.auth_error_callback(status)
except TypeError:
Expand Down

0 comments on commit d8b5e37

Please sign in to comment.