summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncore.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-03-06 10:12:42 (GMT)
committerGeorg Brandl <georg@python.org>2011-03-06 10:12:42 (GMT)
commit891391bf68e66bc441d8c6fc49ab1cf657e394bd (patch)
treefe893ef7d37a765d7463184a9e5249d9c5720b3a /Doc/library/asyncore.rst
parent13039c87f14aeed325bcb5fadd202922a614957b (diff)
parent1d0a0f50606835198b0e1935a9761f3c95fef350 (diff)
downloadcpython-891391bf68e66bc441d8c6fc49ab1cf657e394bd.zip
cpython-891391bf68e66bc441d8c6fc49ab1cf657e394bd.tar.gz
cpython-891391bf68e66bc441d8c6fc49ab1cf657e394bd.tar.bz2
Merge doc fixes.
Diffstat (limited to 'Doc/library/asyncore.rst')
-rw-r--r--Doc/library/asyncore.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/asyncore.rst b/Doc/library/asyncore.rst
index 54dd249..5f95d41 100644
--- a/Doc/library/asyncore.rst
+++ b/Doc/library/asyncore.rst
@@ -282,7 +282,8 @@ implement its socket handling::
asyncore.dispatcher.__init__(self)
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self.connect( (host, 80) )
- self.buffer = bytes('GET %s HTTP/1.0\r\n\r\n' % path, 'ascii')
+ self.buffer = bytes('GET %s HTTP/1.0\r\nHost: %s\r\n\r\n' %
+ (path, host), 'ascii')
def handle_connect(self):
pass