diff options
author | Kyle Partridge <partkyle@gmail.com> | 2012-01-13 15:35:42 -0800 |
---|---|---|
committer | Kyle Partridge <partkyle@gmail.com> | 2012-01-13 15:35:42 -0800 |
commit | 31b1d87d8f7d807a9d1ae42896080a5a5c373c51 (patch) | |
tree | 69ae0bf9e94b6b2e27b2bdb9f4058ae674dbe750 /lib/sendgrid.js | |
parent | 42dc25e7179559909f87721fbe418e51196d7020 (diff) | |
download | sendgrid-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.js | 2 |
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; } |