mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Do not forget to close request body
This commit is contained in:
@@ -36,6 +36,7 @@ func (re *RequestEncoder) EncodeRequest(rq *http.Request) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer rq.Body.Close()
|
||||
defer bb.Reset()
|
||||
return re.Encode(JSONIO{
|
||||
Headers: rq.Header,
|
||||
|
||||
Reference in New Issue
Block a user