Linter fixes numero 2 (#4408)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2024-02-14 17:14:31 -05:00
1 parent 25bce9e8ff
commit 49803e653c
23 files changed
+172 -109

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/textproto"
"os"
@@ -702,7 +702,7 @@ func wrapHandlerWithCallbackInterceptor(h http.Handler, c *Controller) http.Hand
}
}
bytesReader := bytes.NewReader(attrBytes)
req.Body = ioutil.NopCloser(bytesReader)
req.Body = io.NopCloser(bytesReader)
req.ContentLength = int64(bytesReader.Len())
req.Header.Set(textproto.CanonicalMIMEHeaderKey("content-type"), "application/json")
req.Method = http.MethodPost