From f75cd04181b9a8fbcb04d25de5b05299bfee5073 Mon Sep 17 00:00:00 2001 From: Fndroid <18825176954@163.com> 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 }