diff options
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; } |