mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
minor fixes
This commit is contained in:
parent
2e1f7ecd55
commit
9d36f8e43f
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user