urequests: Fix stale variable name (line -> l).

pull/89/merge
Paul Sokolovsky 2016-12-10 17:56:44 +03:00
rodzic 0552589f9f
commit f0b8d9b7ca
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -81,9 +81,9 @@ def request(method, url, data=None, json=None, headers={}, stream=None):
l = s.readline()
if not l or l == b"\r\n":
break
#print(line)
#print(l)
if l.startswith(b"Transfer-Encoding:"):
if b"chunked" in line:
if b"chunked" in l:
raise ValueError("Unsupported " + l)
elif l.startswith(b"Location:"):
raise NotImplementedError("Redirects not yet supported")