Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MikuInvidious
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bing Chilling
MikuInvidious
Commits
5397dddc
Commit
5397dddc
authored
2 years ago
by
Bing Chilling
Browse files
Options
Downloads
Patches
Plain Diff
fix rdrt url doesn't contain params
parent
f69c7f10
No related branches found
Branches containing commit
Tags
v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app.py
+2
-1
2 additions, 1 deletion
app.py
with
2 additions
and
1 deletion
app.py
+
2
−
1
View file @
5397dddc
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment