

def send_host(self, connection, host):
    (host, extra_headers, x509) = self.get_host_info(host)
    connection.putheader('Host', host)
    if extra_headers:
        if isinstance(extra_headers, dict):
            extra_headers = list(extra_headers.items())
        for (key, value) in extra_headers:
            connection.putheader(key, value)

dataset/ETHPy150Open circuits/circuits/tests/web/jsonrpclib.py Transport.send_host/original