Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70097df commit 2355a7eCopy full SHA for 2355a7e
1 file changed
ckan/controllers/error.py
@@ -29,7 +29,9 @@ def document(self):
29
if not original_response:
30
return 'There is no error.'
31
# Bypass error template for API operations.
32
- if original_request and original_request.path.startswith('/api'):
+ if (original_request and
33
+ (original_request.path.startswith('/api') or
34
+ original_request.path.startswith('/fanstatic'))):
35
return original_response.body
36
# Otherwise, decorate original response with error template.
37
c.content = literal(original_response.unicode_body) or \
0 commit comments