File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -205,8 +205,8 @@ def readline(self):
205205 s = yield IORead (self .s )
206206 log .debug ("StreamReader.readline(): after IORead: %s" , s )
207207 res = self .s .readline ()
208- if not res :
209- yield IODone (IO_READ , self .s )
208+ # if not res:
209+ # yield IODone(IO_READ, self.s)
210210 log .debug ("StreamReader.readline(): res: %s" , res )
211211 return res
212212
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ def print_http_headers(url):
55 reader , writer = yield from asyncio .open_connection (url , 80 )
66 print (reader , writer )
77 print ("================" )
8- query = "GET / HTTP/1.0\n \n "
8+ query = "GET / HTTP/1.0\r \n Host: foo\r \n \r \n "
9+ # query = "GET / HTTP/1.0\r\n\r\n"
910 print (query .encode ('latin-1' ))
1011 yield from writer .write (query )
1112 while True :
You can’t perform that action at this time.
0 commit comments