Skip to content

Commit c7e47cd

Browse files
committed
Revert "to solve EISDIR error (#424)"
This reverts commit 05e4743.
1 parent cee52d1 commit c7e47cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/incoming_form.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ IncomingForm.prototype.onPart = function(part) {
182182
IncomingForm.prototype.handlePart = function(part) {
183183
var self = this;
184184

185-
if (!part.filename) {
185+
// This MUST check exactly for undefined. You can not change it to !part.filename.
186+
if (part.filename === undefined) {
186187
var value = ''
187188
, decoder = new StringDecoder(this.encoding);
188189

0 commit comments

Comments
 (0)