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 e220f44 commit 784b5f1Copy full SHA for 784b5f1
1 file changed
ckan/controllers/error.py
@@ -30,7 +30,9 @@ def document(self):
30
if not original_response:
31
return 'There is no error.'
32
# Bypass error template for API operations.
33
- if original_request and original_request.path.startswith('/api'):
+ if (original_request and
34
+ (original_request.path.startswith('/api') or
35
+ original_request.path.startswith('/fanstatic'))):
36
return original_response.body
37
# Otherwise, decorate original response with error template.
38
c.content = literal(original_response.unicode_body) or \
0 commit comments