kopia lustrzana https://github.com/micropython/micropython-lib
uaiohttpclient: Support HTTP reply lines without textual description.
E.g. "HTTP/1.1 500". RFC7230 seems to formally require at least a space after the numeric code, but it was reported that some software sends lines like above nonetheless. Ref: https://github.com/micropython/micropython-lib/issues/247pull/236/merge
rodzic
23ac9e5821
commit
f29477fea5
|
@ -67,8 +67,8 @@ def request(method, url):
|
||||||
reader = yield from request_raw(method, url)
|
reader = yield from request_raw(method, url)
|
||||||
headers = []
|
headers = []
|
||||||
sline = yield from reader.readline()
|
sline = yield from reader.readline()
|
||||||
protover, status, msg = sline.split(None, 2)
|
sline = sline.split(None, 2)
|
||||||
status = int(status)
|
status = int(sline[1])
|
||||||
chunked = False
|
chunked = False
|
||||||
while True:
|
while True:
|
||||||
line = yield from reader.readline()
|
line = yield from reader.readline()
|
||||||
|
|
Ładowanie…
Reference in New Issue