Skip to content

Commit

Permalink
Fix first DeprecationWarning about os.tmpDir()
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-fei authored Dec 7, 2016
1 parent d93055d commit 321e922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/incoming_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function IncomingForm(opts) {
this.maxFields = opts.maxFields || 1000;
this.maxFieldsSize = opts.maxFieldsSize || 2 * 1024 * 1024;
this.keepExtensions = opts.keepExtensions || false;
this.uploadDir = opts.uploadDir || os.tmpDir();
this.uploadDir = opts.uploadDir || (os.tmpdir && os.tmpdir()) || os.tmpDir();
this.encoding = opts.encoding || 'utf-8';
this.headers = null;
this.type = null;
Expand Down

0 comments on commit 321e922

Please sign in to comment.