Skip to content

Commit

Permalink
fixup docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman committed Oct 23, 2014
1 parent c240b2a commit e130699
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flask_seasurf.py
Expand Up @@ -270,10 +270,11 @@ def _before_request(self):

def _after_request(self, response):
'''
Checks if the flask.g object contains the CSRF token, and if the view
in question has CSRF protection enabled. If both, returns the response
with a cookie containing the token. If not then we just return the
response unaltered. Bound to the Flask `after_request` decorator.
Checks if the `flask._app_ctx_object` object contains the CSRF token,
and if the view in question has CSRF protection enabled. If both,
returns the response with a cookie containing the token. If not then we
just return the response unaltered. Bound to the Flask `after_request`
decorator.
:param response: A Flask Response object.
'''
Expand Down

0 comments on commit e130699

Please sign in to comment.