Skip to content

Commit 5e67154

Browse files
committed
stop using apis introduced in go1.16
Change-Id: If1050f482fd269d9e7d9dc34f0a2a3598be9f543
1 parent 0816f17 commit 5e67154

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drpcmux/serve_http.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"context"
88
"encoding/json"
99
"io"
10+
"io/ioutil"
1011
"net/http"
1112
"net/textproto"
1213
"reflect"
@@ -82,7 +83,7 @@ func (m *Mux) serveHTTP(ctx context.Context, rpc string, body io.Reader) ([]byte
8283
}
8384

8485
const maxSize = 4 << 20
85-
bodyData, err := io.ReadAll(io.LimitReader(body, maxSize))
86+
bodyData, err := ioutil.ReadAll(io.LimitReader(body, maxSize))
8687
if err != nil {
8788
return nil, err
8889
} else if len(bodyData) >= maxSize {

0 commit comments

Comments
 (0)