Skip to content

Commit 447a2d7

Browse files
author
Ramón Márquez
committed
fix: use ioutil to maintain backwwards compatibility
1 parent 9f09f63 commit 447a2d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

HttpMessage.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"compress/zlib"
88
"fmt"
99
"io"
10+
"io/ioutil"
1011
"log"
1112
"net/http"
1213
"regexp"
@@ -44,7 +45,7 @@ func readBody(rBody io.ReadCloser, encoding string) (string, error) {
4445
}
4546
reader = io.LimitReader(reader, bodyLimit)
4647

47-
bodyBytes, err := io.ReadAll(reader)
48+
bodyBytes, err := ioutil.ReadAll(reader)
4849
if err != nil {
4950
return "", nil
5051
}

0 commit comments

Comments
 (0)