Skip to content
Snippets Groups Projects
Commit 5397dddc authored by Bing Chilling's avatar Bing Chilling
Browse files

fix rdrt url doesn't contain params

parent f69c7f10
No related branches found
Tags v0.1
No related merge requests found
......@@ -46,7 +46,8 @@ def proxy(url):
netloc = urlparse(url).netloc
if netloc.endswith('-mirrorakam.akamaized.net'):
return flask.redirect(url)
rdrt = url + flask.request.url.strip(flask.request.base_url)
return flask.redirect(rdrt)
if not netloc.endswith('.bilivideo.com'):
return 'bad', 404
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment