Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

couldn't use fileWrapper more than once unless restarted server #1

Merged
merged 2 commits into from

2 participants

@felixchan

because var flags wasn't a deep copy

@SaltwaterC SaltwaterC merged commit bc9e3f3 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/mime-magic.js
View
2  lib/mime-magic.js
@@ -10,7 +10,7 @@ var trim = function (string) {
};
var fileWrapper = function (path, cb) {
- var flags = fileFlags;
+ var flags = JSON.parse(JSON.stringify(fileFlags)); //
flags.push(path);
cp.execFile(fileExec, flags, function (err, stdout) {
stdout = stdout.trim();
Something went wrong with that request. Please try again.