MCPcopy 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
27def 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
35def str2json(content):

Callers 1

downloadFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected