File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -205,8 +205,8 @@ def readline(self):
205
205
s = yield IORead (self .s )
206
206
log .debug ("StreamReader.readline(): after IORead: %s" , s )
207
207
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)
210
210
log .debug ("StreamReader.readline(): res: %s" , res )
211
211
return res
212
212
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ def print_http_headers(url):
5
5
reader , writer = yield from asyncio .open_connection (url , 80 )
6
6
print (reader , writer )
7
7
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"
9
10
print (query .encode ('latin-1' ))
10
11
yield from writer .write (query )
11
12
while True :
You can’t perform that action at this time.
0 commit comments