kopia lustrzana https://github.com/micropython/micropython-lib
Merge 2d63b4fe93
into 96bd01ec04
commit
84820d5f57
|
@ -71,6 +71,10 @@ def request(
|
||||||
import tls
|
import tls
|
||||||
|
|
||||||
port = 443
|
port = 443
|
||||||
|
elif proto == "file:":
|
||||||
|
r = Response(open(url[7:], "b"))
|
||||||
|
r.status_code = 200
|
||||||
|
return r
|
||||||
else:
|
else:
|
||||||
raise ValueError("Unsupported protocol: " + proto)
|
raise ValueError("Unsupported protocol: " + proto)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue