diff --git a/asyncio/asyncio.py b/asyncio/asyncio.py index 5dbefba0..a6868543 100644 --- a/asyncio/asyncio.py +++ b/asyncio/asyncio.py @@ -205,8 +205,8 @@ class StreamReader: s = yield IORead(self.s) log.debug("StreamReader.readline(): after IORead: %s", s) res = self.s.readline() - if not res: - yield IODone(IO_READ, self.s) +# if not res: +# yield IODone(IO_READ, self.s) log.debug("StreamReader.readline(): res: %s", res) return res diff --git a/asyncio/test_http_client.py b/asyncio/test_http_client.py index cffc61e7..0c96caf4 100644 --- a/asyncio/test_http_client.py +++ b/asyncio/test_http_client.py @@ -5,7 +5,8 @@ def print_http_headers(url): reader, writer = yield from asyncio.open_connection(url, 80) print(reader, writer) print("================") - query = "GET / HTTP/1.0\n\n" + query = "GET / HTTP/1.0\r\nHost: foo\r\n\r\n" +# query = "GET / HTTP/1.0\r\n\r\n" print(query.encode('latin-1')) yield from writer.write(query) while True: