From 6be3c35db8ba9b01d9fa83a5d429694362abd8b8 Mon Sep 17 00:00:00 2001 From: Andi <36215014+ChengenH@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:37:05 +0800 Subject: [PATCH] Chore: "io/ioutil" -> "io" (#4143) Signed-off-by: ChengenH --- transport/internet/splithttp/browser_client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/transport/internet/splithttp/browser_client.go b/transport/internet/splithttp/browser_client.go index a0a584a9..427ed470 100644 --- a/transport/internet/splithttp/browser_client.go +++ b/transport/internet/splithttp/browser_client.go @@ -3,7 +3,6 @@ package splithttp import ( "context" "io" - "io/ioutil" gonet "net" "github.com/xtls/xray-core/transport/internet/browser_dialer" @@ -33,7 +32,7 @@ func (c *BrowserDialerClient) OpenDownload(ctx context.Context, baseURL string) } func (c *BrowserDialerClient) SendUploadRequest(ctx context.Context, url string, payload io.ReadWriteCloser, contentLength int64) error { - bytes, err := ioutil.ReadAll(payload) + bytes, err := io.ReadAll(payload) if err != nil { return err }