kopia lustrzana https://github.com/micropython/micropython-lib
Merge 27e00b6274
into 68e0dfce0a
commit
379a286228
|
@ -74,6 +74,14 @@ def request(
|
|||
else:
|
||||
raise ValueError("Unsupported protocol: " + proto)
|
||||
|
||||
if "?" in host:
|
||||
host, _path = host.split("?", 1)
|
||||
path = "?" + _path + path
|
||||
|
||||
if "#" in host:
|
||||
host, _path = host.split("#", 1)
|
||||
path = "#" + _path + path
|
||||
|
||||
if ":" in host:
|
||||
host, port = host.split(":", 1)
|
||||
port = int(port)
|
||||
|
|
Ładowanie…
Reference in New Issue