kopia lustrzana https://github.com/micropython/micropython-lib
urequests: Fix stale variable name (line -> l).
rodzic
0552589f9f
commit
f0b8d9b7ca
|
@ -81,9 +81,9 @@ def request(method, url, data=None, json=None, headers={}, stream=None):
|
||||||
l = s.readline()
|
l = s.readline()
|
||||||
if not l or l == b"\r\n":
|
if not l or l == b"\r\n":
|
||||||
break
|
break
|
||||||
#print(line)
|
#print(l)
|
||||||
if l.startswith(b"Transfer-Encoding:"):
|
if l.startswith(b"Transfer-Encoding:"):
|
||||||
if b"chunked" in line:
|
if b"chunked" in l:
|
||||||
raise ValueError("Unsupported " + l)
|
raise ValueError("Unsupported " + l)
|
||||||
elif l.startswith(b"Location:"):
|
elif l.startswith(b"Location:"):
|
||||||
raise NotImplementedError("Redirects not yet supported")
|
raise NotImplementedError("Redirects not yet supported")
|
||||||
|
|
Ładowanie…
Reference in New Issue