forked from quic-go/quic-go
update golangci-lint action to v3, golangci-lint to v1.48.0 (#3499)
* run gofmt -s -w * stop using the deprecated io/ioutil package * update golangci-lint action to v3, golangci-lint to v1.48.0
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
@@ -93,7 +92,7 @@ func setupHandler(www string) http.Handler {
|
||||
})
|
||||
|
||||
mux.HandleFunc("/demo/echo", func(w http.ResponseWriter, r *http.Request) {
|
||||
body, err := ioutil.ReadAll(r.Body)
|
||||
body, err := io.ReadAll(r.Body)
|
||||
if err != nil {
|
||||
fmt.Printf("error reading body while handling /echo: %s\n", err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user