Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename xml format to rss2 for accuracy sake

  • Loading branch information...
commit fa02f2fdfa6200b6db68718ba14c4189aa397ab8 1 parent d47e4d9
@meldra authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 brain/views.py
View
8 brain/views.py
@@ -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())
Please sign in to comment.
Something went wrong with that request. Please try again.