Skip to content

Commit

Permalink
Merge branch 'release/v2.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmarban committed Dec 11, 2019
2 parents 34e135a + fd68e90 commit 4205ac5
Show file tree
Hide file tree
Showing 4 changed files with 2,497 additions and 678 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v2.2.1] - 2019-12-11
- [#16](https://github.com/ivanmarban/winston-telegram/issues/16) Use `Buffer.byteLength` to compute the `Content-Length` header.

## [v2.2.0] - 2019-08-06
- [#13](https://github.com/ivanmarban/winston-telegram/pull/13) Add typescript typings. ([@Multivit4min](https://github.com/Multivit4min))
- Update dependencies.
Expand Down Expand Up @@ -66,7 +69,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [v0.1.0] - 2015-11-12
- First version.

[unreleased]: https://github.com/ivanmarban/winston-telegram/compare/v2.2.0...develop
[unreleased]: https://github.com/ivanmarban/winston-telegram/compare/v2.2.1...develop
[v2.2.1]: https://github.com/ivanmarban/winston-telegram/compare/v2.2.0...v2.2.1
[v2.2.0]: https://github.com/ivanmarban/winston-telegram/compare/v2.1.0...v2.2.0
[v2.1.0]: https://github.com/ivanmarban/winston-telegram/compare/v2.0.1...v2.1.0
[v2.0.1]: https://github.com/ivanmarban/winston-telegram/compare/v2.0.0...v2.0.1
Expand Down
2 changes: 1 addition & 1 deletion lib/winston-telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module.exports = class Telegram extends Transport {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8',
'Content-Length': requestData.length
'Content-Length': Buffer.byteLength(requestData)
}
}

Expand Down
Loading

0 comments on commit 4205ac5

Please sign in to comment.