Merge pull request #9 in TUN/cloudflared from rishabh/TUN-828 to master
* commit 'ac70c15248bdde8eaba25e004759959a86b79f69': TUN-828: Added Connection: keep-alive header
This commit is contained in:
commit
8377b25763
|
@ -545,6 +545,9 @@ func (h *TunnelHandler) ServeStream(stream *h2mux.MuxedStream) error {
|
|||
}
|
||||
}
|
||||
|
||||
// Request origin to keep connection alive to improve performance
|
||||
req.Header.Set("Connection", "keep-alive")
|
||||
|
||||
response, err := h.httpClient.RoundTrip(req)
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue