Skip to content

Commit

Permalink
identation fix and response header
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Oct 19, 2017
1 parent d213032 commit 3c0f38a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ckan/views/feed.py
Expand Up @@ -124,10 +124,9 @@ def output_feed(results, feed_title, feed_description, feed_link, feed_url,
unicode(len(json.dumps(pkg))), u'application/json'),
**additional_fields)

# response.content_type = feed.mime_type
resp = make_response(feed.writeString(u'utf-8'), 200)
resp.headers['Content-Type'] = u'text/xml'
return resp
resp = make_response(feed.writeString(u'utf-8'), 200)
resp.headers['Content-Type'] = u'application/atom+xml'
return resp


def group(id):
Expand Down

0 comments on commit 3c0f38a

Please sign in to comment.