Skip to content

Commit

Permalink
[#2802] Content-Type: app/json
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 6, 2012
1 parent 9729f1c commit 7ec9857
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/controllers/api.py
Expand Up @@ -762,6 +762,7 @@ def i18n_js_translations(self, lang):
ckan_path = os.path.join(os.path.dirname(__file__), '..')
source = os.path.abspath(os.path.join(ckan_path, 'public',
'base', 'i18n', '%s.js' % lang))
response.headers['Content-Type'] = CONTENT_TYPES['json']
if not os.path.exists(source):
return '{}'
f = open(source, 'r')
Expand Down

0 comments on commit 7ec9857

Please sign in to comment.