Skip to content

Commit

Permalink
Update ckanext/csrf_filter/plugin.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Ward <[email protected]>
  • Loading branch information
JVickery-TBS and wardi authored Aug 25, 2023
1 parent b9ced25 commit 0e1c4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/csrf_filter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def set_csrf_token(response):
""" Apply a CSRF token to all response bodies.
"""
if hasattr(response, 'response') \
and isinstance(response.response, GeneratorType):
and isinstance(response.response, GeneratorType):
return response

response.direct_passthrough = False
Expand Down

0 comments on commit 0e1c4d5

Please sign in to comment.