Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/multipartform.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Part.prototype = {

//Now write out the body of the Part
if (this.value instanceof File) {
fs.open(this.value.path, "r", 0666, function (err, fd) {
fs.open(this.value.path, "r", "0666", function (err, fd) {
if (err) throw err;

var position = 0;
Expand Down
2 changes: 1 addition & 1 deletion test/restler.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports['Basic'] = {
});
},

'Should GET withouth path': function(test) {
'Should GET without path': function(test) {
rest.get(host).on('complete', function(data) {
test.re(data, /^GET \//, 'should hit /');
test.done();
Expand Down