Skip to content

Commit

Permalink
fix error handling for decompressGzippedContent #327 (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-ivlev authored May 25, 2022
1 parent 0ccb6f6 commit ac4e803
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ export async function decompressGzippedContent(buffer: Buffer, charset?: string)
zlib.gunzip(buffer, function (error, buffer) {
if (error) {
reject(error);
} else {
resolve(buffer.toString(charset || 'utf-8'));
}

resolve(buffer.toString(charset || 'utf-8'));
});
})
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typed-rest-client",
"version": "1.8.8",
"version": "1.8.9",
"description": "Node Rest and Http Clients for use with TypeScript",
"main": "./RestClient.js",
"scripts": {
Expand Down

0 comments on commit ac4e803

Please sign in to comment.