mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-11 04:56:35 +00:00
TUN-828: Added Connection: keep-alive header
This commit is contained in:
parent
cefcb79b75
commit
ac70c15248
@ -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
Block a user