minor fixes

This commit is contained in:
Maximilian Hils 2015-11-01 18:20:00 +01:00
parent 2e1f7ecd55
commit 9d36f8e43f
2 changed files with 2 additions and 2 deletions

View File

@ -92,6 +92,8 @@ class Request(Message):
Target host. This may be parsed from the raw request
(e.g. from a ``GET http://example.com/ HTTP/1.1`` request line)
or inferred from the proxy mode (e.g. an IP in transparent mode).
Setting the host attribute also updates the host header, if present.
"""
if six.PY2: # pragma: nocover

View File

@ -559,8 +559,6 @@ class TCPClient(_Connection):
@address.setter
def address(self, address):
if self.connection:
raise RuntimeError("Cannot change server address after establishing connection")
if address:
self.__address = Address.wrap(address)
else: