requestTunnel performs the given request against the tunnel. The Host header will be set to the tunnel's hostname.
(tunnel *tunnelsdk.Tunnel, req *http.Request)
| 276 | // requestTunnel performs the given request against the tunnel. The Host header |
| 277 | // will be set to the tunnel's hostname. |
| 278 | func (s *tunnelServer) requestTunnel(tunnel *tunnelsdk.Tunnel, req *http.Request) (*http.Response, error) { |
| 279 | req.URL.Scheme = "https" |
| 280 | req.URL.Host = tunnel.URL.Host |
| 281 | req.Host = tunnel.URL.Host |
| 282 | return s.client().Do(req) |
| 283 | } |
no test coverage detected