Skip to content

Commit d864a2a

Browse files
committed
fix(apps): AppsScale close body
1 parent c51b20c commit d864a2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ func (c *Client) AppsScale(ctx context.Context, app string, params *AppsScalePar
332332
if err != nil {
333333
return nil, "", errors.Wrap(ctx, err, "request Scalingo API to scale the application")
334334
}
335+
defer res.Body.Close()
335336

336337
var scaleRes ScaleRes
337338
err = json.NewDecoder(res.Body).Decode(&scaleRes)

0 commit comments

Comments
 (0)