Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FongMi/TV
/ redirect
Function
redirect
chaquo/src/main/python/app.py:27–32 ·
view source on GitHub ↗
(url)
Source
from the content-addressed store, hash-verified
25
26
27
def
redirect(url):
28
rsp = requests.get(url, allow_redirects=False, verify=False)
29
if
'Location'
in rsp.headers:
30
return
redirect(rsp.headers[
'Location'
])
31
else
:
32
return
rsp
33
34
35
def
str2json(content):
Callers
1
download
Function · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected