remove extra /

This commit is contained in:
j 2011-12-31 02:28:38 +05:30
parent 90a36cfa17
commit 9df8d2f266

View file

@ -54,7 +54,7 @@ def opensearch_xml(request):
e = ET.SubElement(osd, 'Url') e = ET.SubElement(osd, 'Url')
e.attrib['type'] = 'text/html' e.attrib['type'] = 'text/html'
e.attrib['method'] = 'GET' e.attrib['method'] = 'GET'
e.attrib['template'] = "%s/{searchTerms}" % request.build_absolute_uri('/') e.attrib['template'] = "%s{searchTerms}" % request.build_absolute_uri('/')
''' '''
e = ET.SubElement(osd, 'Url') e = ET.SubElement(osd, 'Url')
e.attrib['type'] = 'application/x-suggestions+json' e.attrib['type'] = 'application/x-suggestions+json'