From 61649e386e290749f2e05dff11381d3cd63d48df Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Fri, 9 Aug 2019 15:39:13 +0800 Subject: [PATCH] Change: speedtest with HEAD instead of GET (#259) --- adapters/outbound/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/outbound/base.go b/adapters/outbound/base.go index 3254209b..e8f44f45 100644 --- a/adapters/outbound/base.go +++ b/adapters/outbound/base.go @@ -163,7 +163,7 @@ func (p *Proxy) URLTest(ctx context.Context, url string) (t uint16, err error) { } defer instance.Close() - req, err := http.NewRequest(http.MethodGet, url, nil) + req, err := http.NewRequest(http.MethodHead, url, nil) if err != nil { return }