diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2022-02-07 20:30:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 20:30:09 +0100 |
commit | dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d (patch) | |
tree | 905bdda62cd2fd41cd82578b54fc56b8b944341d /vendor/github.com/SevereCloud/vksdk/v2/api | |
parent | 2a3f475ff5abb510e9abe1af31a5a83b2066d86f (diff) | |
download | matterbridge-msglm-dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d.tar.gz matterbridge-msglm-dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d.tar.bz2 matterbridge-msglm-dd3fb32ec7a400bd0c37c26cdcf1f2abcd523f3d.zip |
Bump github.com/SevereCloud/vksdk/v2 from 2.13.0 to 2.13.1 (#1730)
Bumps [github.com/SevereCloud/vksdk/v2](https://github.com/SevereCloud/vksdk) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/SevereCloud/vksdk/releases)
- [Commits](https://github.com/SevereCloud/vksdk/compare/v2.13.0...v2.13.1)
---
updated-dependencies:
- dependency-name: github.com/SevereCloud/vksdk/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/api.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go index 760bc7e0..dfc4afaf 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go @@ -269,9 +269,15 @@ func (vk *VK) DefaultHandler(method string, sliceParams ...Params) (Response, er switch resp.Header.Get("Content-Encoding") { case "zstd": - reader, _ = zstd.NewReader(resp.Body) + zstdReader, _ := zstd.NewReader(resp.Body) + defer zstdReader.Close() + + reader = zstdReader case "gzip": - reader, _ = gzip.NewReader(resp.Body) + gzipReader, _ := gzip.NewReader(resp.Body) + defer gzipReader.Close() + + reader = gzipReader default: reader = resp.Body } |