mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Merge pull request #100 from gms8994/master
Adds content_type header to /social/rss/ requests
This commit is contained in:
commit
459065e80e
1 changed files with 2 additions and 2 deletions
|
@ -1206,7 +1206,7 @@ def shared_stories_rss_feed(request, user_id, username):
|
||||||
user.username,
|
user.username,
|
||||||
request.META['HTTP_USER_AGENT'][:24]
|
request.META['HTTP_USER_AGENT'][:24]
|
||||||
))
|
))
|
||||||
return HttpResponse(rss.writeString('utf-8'))
|
return HttpResponse(rss.writeString('utf-8'), content_type='application/rss+xml')
|
||||||
|
|
||||||
@required_params('user_id')
|
@required_params('user_id')
|
||||||
@json.json_view
|
@json.json_view
|
||||||
|
@ -1320,4 +1320,4 @@ def comment(request, comment_id):
|
||||||
except MSharedStory.DoesNotExist:
|
except MSharedStory.DoesNotExist:
|
||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
return shared_story.comments_with_author()
|
return shared_story.comments_with_author()
|
||||||
|
|
Loading…
Add table
Reference in a new issue