Skip to content

Commit

Permalink
[#262] Fix helper import in lib.jsonp
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jan 9, 2013
1 parent 25f286e commit b7c6284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/jsonp.py
Expand Up @@ -2,12 +2,12 @@

from pylons import request, response

from ckan.lib.helpers import json
import ckan.lib.helpers as h


def to_jsonp(data):
content_type = 'application/json;charset=utf-8'
result = json.dumps(data, sort_keys=True)
result = h.json.dumps(data, sort_keys=True)
if 'callback' in request.params:
response.headers['Content-Type'] = content_type
cbname = request.params['callback']
Expand Down

0 comments on commit b7c6284

Please sign in to comment.