Permalink
Browse files

Rename xml format to rss2 for accuracy sake

  • Loading branch information...
meldra committed Jan 7, 2013
1 parent d47e4d9 commit fa02f2fdfa6200b6db68718ba14c4189aa397ab8
Showing with 4 additions and 4 deletions.
  1. +4 −4 brain/views.py
View
@@ -553,7 +553,7 @@ def mboxperson(person, format=False, limit=0):
if format == 'json':
return mboxlist
- if format == 'xml':
+ if format == 'rss2':
feed = feedgenerator.Rss201rev2Feed(
language="en",
author_name="Was Where When",
@@ -619,7 +619,7 @@ def search(request):
except:
format = ''
- if format != 'xml' and format != 'json':
+ if format != 'rss2' and format != 'json':
format = ''
try:
@@ -651,7 +651,7 @@ def search(request):
if format == 'json':
return HttpResponse(simplejson.dumps(results), mimetype="application/json")
- elif format == 'xml':
- return HttpResponse(results, mimetype="application/rss+xml")
+ elif format == 'rss2':
+ return HttpResponse(results, mimetype="application/rss2+xml")
else:
return render_to_response('search.html', locals())

0 comments on commit fa02f2f

Please sign in to comment.