From f13596c8aedef867d5aef4978ccf05f275ef948d Mon Sep 17 00:00:00 2001 From: Sean Cuevo Date: Fri, 2 Oct 2015 14:55:29 -0600 Subject: [PATCH] removing extra new line that would corrupt ms office file attachments --- forcetk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forcetk.js b/forcetk.js index eb1d7f2..cc640d7 100644 --- a/forcetk.js +++ b/forcetk.js @@ -286,7 +286,7 @@ if (forcetk.Client === undefined) { + "Content-Disposition: form-data; name=\"" + payloadField + "\"; filename=\"" + filename + "\"\n\n", payload, - "\n\n" + "\n" + "--boundary_" + boundary + "--" ], {type : 'multipart/form-data; boundary=\"boundary_' + boundary + '\"'});