summaryrefslogtreecommitdiffstats
path: root/lib/sendgrid.js
diff options
context:
space:
mode:
authorKyle Partridge <partkyle@gmail.com>2012-01-13 15:35:42 -0800
committerKyle Partridge <partkyle@gmail.com>2012-01-13 15:35:42 -0800
commit31b1d87d8f7d807a9d1ae42896080a5a5c373c51 (patch)
tree69ae0bf9e94b6b2e27b2bdb9f4058ae674dbe750 /lib/sendgrid.js
parent42dc25e7179559909f87721fbe418e51196d7020 (diff)
downloadsendgrid-nodejs-31b1d87d8f7d807a9d1ae42896080a5a5c373c51.zip
sendgrid-nodejs-31b1d87d8f7d807a9d1ae42896080a5a5c373c51.tar.gz
sendgrid-nodejs-31b1d87d8f7d807a9d1ae42896080a5a5c373c51.tar.bz2
this should fix the issue on the REST mail api
Diffstat (limited to 'lib/sendgrid.js')
-rw-r--r--lib/sendgrid.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js
index 050ba70..4d039a3 100644
--- a/lib/sendgrid.js
+++ b/lib/sendgrid.js
@@ -156,7 +156,7 @@ function encodeField(boundary,name,value) {
function encodeFile(boundary,type,name,filename) {
var return_part = "--" + boundary + "\r\n";
return_part += "Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + filename + "\"\r\n";
- return_part += "Content-Type: " + type + "\r\n";
+ return_part += "Content-Type: " + type + "\r\n\r\n";
return return_part;
}