update rss_proxy.py
* testing fixes description
This commit is contained in:
@@ -51,6 +51,7 @@ def init_proxy(app):
|
||||
raw_query = request.query_string.decode()
|
||||
if raw_query.startswith("url="):
|
||||
url = urllib.parse.unquote(raw_query[4:])
|
||||
url = html.unescape(url)
|
||||
else:
|
||||
return "Missing URL", 400
|
||||
|
||||
@@ -110,7 +111,6 @@ def init_proxy(app):
|
||||
|
||||
final_items = cached_items + new_items
|
||||
response_xml = f"""{_head_html}{"".join(final_items)}</channel></rss>"""
|
||||
response_xml = response_xml.replace("&", "&")
|
||||
|
||||
return Response(response_xml, content_type="application/xml; charset=utf-8")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user