Change: speedtest with HEAD instead of GET (#259)

This commit is contained in:
gVisor bot 2019-08-09 15:39:13 +08:00
parent 69980e4ca3
commit 61649e386e

View file

@ -163,7 +163,7 @@ func (p *Proxy) URLTest(ctx context.Context, url string) (t uint16, err error) {
} }
defer instance.Close() defer instance.Close()
req, err := http.NewRequest(http.MethodGet, url, nil) req, err := http.NewRequest(http.MethodHead, url, nil)
if err != nil { if err != nil {
return return
} }