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.
33
44This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
55
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+
611## [ 2.2.0] - 2016-06-10
712### Added
813- 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) {
7373 // add the request body's content length
7474 if ( ! isEmpty ( endpointRequest . body ) ) {
7575 body = JSON . stringify ( endpointRequest . body )
76- request . headers [ 'Content-Length' ] = body . length
76+ request . headers [ 'Content-Length' ] = Buffer . byteLength ( body )
7777 request . headers [ 'Content-Type' ] = 'application/json'
7878 }
7979
Original file line number Diff line number Diff line change 55 ],
66 "name" : " sendgrid-rest" ,
77 "description" : " HTTP REST client, simplified for Node.js." ,
8- "version" : " 2.2.0 " ,
8+ "version" : " 2.2.1 " ,
99 "homepage" : " https://sendgrid.com" ,
1010 "repository" : {
1111 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments