Skip to content
Browse files

Merge pull request #224 from janjongboom/master

Multipart content-type change
  • Loading branch information...
2 parents 7fff74c + 8c163eb commit d853e5311aa6c1f03f398f7094c9b73607a3a154 @mikeal mikeal committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 main.js
View
4 main.js
@@ -623,9 +623,9 @@ Request.prototype.multipart = function (multipart) {
self.body = []
if (!self.headers['content-type']) {
- self.headers['content-type'] = 'multipart/related;boundary="frontier"';
+ self.headers['content-type'] = 'multipart/related; boundary=frontier';
} else {
- self.headers['content-type'] = self.headers['content-type'].split(';')[0] + ';boundary="frontier"';
+ self.headers['content-type'] = self.headers['content-type'].split(';')[0] + '; boundary=frontier';
}
if (!multipart.forEach) throw new Error('Argument error, options.multipart.')

0 comments on commit d853e53

Please sign in to comment.
Something went wrong with that request. Please try again.