mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
Fix typo in example (\b should be \n in string literal).
This closes SF bug #414279.
This commit is contained in:
parent
9c846366ee
commit
819815abea
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class http_client(asyncore.dispatcher):
|
|||
self.path = path
|
||||
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.connect( (host, 80) )
|
||||
self.buffer = 'GET %s HTTP/1.0\r\b\r\n' % self.path
|
||||
self.buffer = 'GET %s HTTP/1.0\r\n\r\n' % self.path
|
||||
|
||||
def handle_connect(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue