We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7337e08 commit 87985adCopy full SHA for 87985ad
1 file changed
python-ecosys/requests/requests/__init__.py
@@ -71,6 +71,10 @@ def request(
71
import tls
72
73
port = 443
74
+ elif proto == "file:":
75
+ r = Response(open(url[7:], 'b'))
76
+ r.status_code = 200
77
+ return r
78
else:
79
raise ValueError("Unsupported protocol: " + proto)
80
0 commit comments