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:
Rishabh Bector 2018-07-30 17:03:47 +00:00
commit 8377b25763
1 changed files with 3 additions and 0 deletions

View File

@ -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 {