Skip to content

Commit

Permalink
https://github.com/danwrong/restler/issues/250
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Jedich committed Mar 4, 2018
1 parent f7d1554 commit ed1e6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/multipartform.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Part.prototype = {

//Now write out the body of the Part
if (this.value instanceof File) {
fs.openSync(this.value.path, 'r+', function (err, fd) {
fs.open(this.value.path, 'r+', function (err, fd) {
var stats = fs.fstatSync(fd);
var bufferSize = stats.size;
if (err) throw err;
Expand Down

0 comments on commit ed1e6fc

Please sign in to comment.