Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Version Bump v2.2.1: Sending email with accents
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious committed Jun 15, 2016
1 parent 2ab5938 commit 20b5194
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## [2.2.1] - 2016-06-15
### Fixed
- Sending email with accents: https://github.com/sendgrid/sendgrid-nodejs/issues/239
- Thanks [eaparango](https://github.com/eaparango)!

## [2.2.0] - 2016-06-10
### Added
- Automatically add Content-Type: application/json when there is a request body
Expand Down
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function Client (globalRequest) {
// add the request body's content length
if (!isEmpty(endpointRequest.body)) {
body = JSON.stringify(endpointRequest.body)
request.headers['Content-Length'] = body.length
request.headers['Content-Length'] = Buffer.byteLength(body)
request.headers['Content-Type'] = 'application/json'
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"name": "sendgrid-rest",
"description": "HTTP REST client, simplified for Node.js.",
"version": "2.2.0",
"version": "2.2.1",
"homepage": "https://sendgrid.com",
"repository": {
"type": "git",
Expand Down

0 comments on commit 20b5194

Please sign in to comment.