forked from 0x2620/pandora
tostring returns bytes...
This commit is contained in:
parent
12f3901c9a
commit
b800110b29
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ def opensearch_xml(request):
|
||||||
e.attrib['template'] = "%s?q={searchTerms}" % request.build_absolute_uri('/opensearch_suggest')
|
e.attrib['template'] = "%s?q={searchTerms}" % request.build_absolute_uri('/opensearch_suggest')
|
||||||
'''
|
'''
|
||||||
return HttpResponse(
|
return HttpResponse(
|
||||||
'<?xml version="1.0" encoding="UTF-8"?>\n' + ET.tostring(osd),
|
'<?xml version="1.0" encoding="UTF-8"?>\n' + ET.tostring(osd).decode(),
|
||||||
'application/xml'
|
'application/xml'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue