Skip to content

Commit

Permalink
Merge pull request ladjs#310 from mscdex/patch-1
Browse files Browse the repository at this point in the history
fix part content-disposition
  • Loading branch information
tj committed Jan 12, 2014
2 parents 37d0308 + b05f198 commit 9742f24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/node/part.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* Module dependencies.
*/
Expand Down Expand Up @@ -116,7 +115,7 @@ Part.prototype.name = function(name){

Part.prototype.attachment = function(name, filename){
this.type(filename);
this.set('Content-Disposition', 'attachment; name="' + name + '"; filename="' + basename(filename) + '"');
this.set('Content-Disposition', 'form-data; name="' + name + '"; filename="' + basename(filename) + '"');
return this;
};

Expand Down

0 comments on commit 9742f24

Please sign in to comment.