Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Sep 13, 2017
1 parent e640cb1 commit 31a209f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clam/common/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def decorated(*args, **kwargs):
break
else:
self.printdebug("No authorization header passed")
flask.request.data #clear receive buffer of pending data
res = flask.make_response("Authorization required")
res.status_code = 401
res.headers.add('WWW-Authenticate', self.main_auth.authenticate_header())
Expand Down

0 comments on commit 31a209f

Please sign in to comment.