Linter fixes numero 2 (#4408)
This commit is contained in:
1 parent
25bce9e8ff
commit
49803e653c
23 files changed
+172
-109
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user