This repository was archived by the owner on Aug 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
3
3
4
4
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
5
5
6
+ ## [ 2.2.1] - 2016-06-15
7
+ ### Fixed
8
+ - Sending email with accents: https://github.com/sendgrid/sendgrid-nodejs/issues/239
9
+ - Thanks [ eaparango] ( https://github.com/eaparango ) !
10
+
6
11
## [ 2.2.0] - 2016-06-10
7
12
### Added
8
13
- Automatically add Content-Type: application/json when there is a request body
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ function Client (globalRequest) {
73
73
// add the request body's content length
74
74
if ( ! isEmpty ( endpointRequest . body ) ) {
75
75
body = JSON . stringify ( endpointRequest . body )
76
- request . headers [ 'Content-Length' ] = body . length
76
+ request . headers [ 'Content-Length' ] = Buffer . byteLength ( body )
77
77
request . headers [ 'Content-Type' ] = 'application/json'
78
78
}
79
79
Original file line number Diff line number Diff line change 5
5
],
6
6
"name" : " sendgrid-rest" ,
7
7
"description" : " HTTP REST client, simplified for Node.js." ,
8
- "version" : " 2.2.0 " ,
8
+ "version" : " 2.2.1 " ,
9
9
"homepage" : " https://sendgrid.com" ,
10
10
"repository" : {
11
11
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments