From 80154639e30180348874394063a23659259d1757 Mon Sep 17 00:00:00 2001 From: fatedier Date: Tue, 6 Aug 2019 17:29:35 +0800 Subject: [PATCH] fix --- utils/vhost/reverseproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/vhost/reverseproxy.go b/utils/vhost/reverseproxy.go index 39e4405..f606f48 100644 --- a/utils/vhost/reverseproxy.go +++ b/utils/vhost/reverseproxy.go @@ -195,7 +195,7 @@ func (p *ReverseProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) { }() } - outreq := req.Clone(ctx) + outreq := req.WithContext(ctx) if req.ContentLength == 0 { outreq.Body = nil // Issue 16036: nil Body for http.Transport retries }