We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ec1a2 commit 9335f74Copy full SHA for 9335f74
dump.go
@@ -4,7 +4,7 @@ import (
4
"bytes"
5
"encoding/json"
6
"fmt"
7
- "io/ioutil"
+ "io"
8
"net/http"
9
"regexp"
10
"sort"
@@ -30,7 +30,7 @@ func withColor(color int, text string) string {
30
}
31
32
func writeBody(buf *bytes.Buffer, req *http.Request) error {
33
- body, err := ioutil.ReadAll(req.Body)
+ body, err := io.ReadAll(req.Body)
34
if err != nil {
35
return err
36
response.go
@@ -5,7 +5,6 @@ import (
"io"
"os"
11
@@ -53,7 +52,7 @@ func (body *Body) Payload() []byte {
53
52
54
55
// XXX: Handle this error
56
- bytes, _ := ioutil.ReadAll(body.File)
+ bytes, _ := io.ReadAll(body.File)
57
body.File.Seek(0, 0)
58
return bytes
59
0 commit comments