fix golint issues
This commit is contained in:
@@ -45,7 +45,7 @@ func decryptBody(key []byte, r *http.Request) error {
|
||||
var content []byte
|
||||
var err error
|
||||
if r.ContentLength > 0 {
|
||||
content = make([]byte, r.ContentLength, r.ContentLength)
|
||||
content = make([]byte, r.ContentLength)
|
||||
_, err = io.ReadFull(r.Body, content)
|
||||
} else {
|
||||
content, err = ioutil.ReadAll(io.LimitReader(r.Body, maxBytes))
|
||||
|
||||
Reference in New Issue
Block a user