mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-12 06:46:04 +03:00
Chore: "io/ioutil" -> "io" (#4143)
Signed-off-by: ChengenH <hce19970702@gmail.com>
This commit is contained in:
parent
0e2304c403
commit
6be3c35db8
@ -3,7 +3,6 @@ package splithttp
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
gonet "net"
|
gonet "net"
|
||||||
|
|
||||||
"github.com/xtls/xray-core/transport/internet/browser_dialer"
|
"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 {
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user