Skip to content

Commit

Permalink
Handle mutual authentication
Browse files Browse the repository at this point in the history
Make certain that responses always pass through handle_other() to provide mutual
authentication before returning them to the user.
  • Loading branch information
Michael Komitee committed Aug 8, 2014
1 parent 0dce914 commit 17497b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests_kerberos/kerberos_.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def handle_response(self, response, **kwargs):
if response.status_code == 401:
_r = self.handle_401(response, **kwargs)
log.debug("handle_response(): returning {0}".format(_r))
return _r
return self.handle_response(_r, **kwargs)
else:
_r = self.handle_other(response)
log.debug("handle_response(): returning {0}".format(_r))
Expand Down

0 comments on commit 17497b8

Please sign in to comment.