You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index.js looks for "content-type" which is case sensitive.
This code errors out with:
/home/jnankin/node_modules/unirest/index.js:321
$this.options.multipart.push(options);
^
TypeError: Cannot call method 'push' of undefined
Looking at index.js, I don't see where $this.options.multipart would ever have been set. It's only set if !$this._multipart, but _multipart is definied by default.
The text was updated successfully, but these errors were encountered:
Say I have this code:
var request = unirest.post(endpoint);
request.part({
'Content-Disposition': 'file; filename="inflation.tiff"',
'content-type': 'image/tiff',
'Content-Transfer-Encoding' : 'base64',
body: base64Image
});
Couple of things:
/home/jnankin/node_modules/unirest/index.js:321
$this.options.multipart.push(options);
^
TypeError: Cannot call method 'push' of undefined
Looking at index.js, I don't see where $this.options.multipart would ever have been set. It's only set if !$this._multipart, but _multipart is definied by default.
The text was updated successfully, but these errors were encountered: