Fixing incorrect argument
This commit is contained in:
parent
25197b9abd
commit
c7a7acc1c9
@ -13,7 +13,7 @@ const config = require(path.resolve(process.argv[2]));
|
|||||||
const configFor = path => {
|
const configFor = path => {
|
||||||
const { match, ...conf } = config.paths.find(conf => conf.match.test(path)); // eslint-disable-line no-unused-vars
|
const { match, ...conf } = config.paths.find(conf => conf.match.test(path)); // eslint-disable-line no-unused-vars
|
||||||
return {
|
return {
|
||||||
ContentEncoding: mime.lookup(path) || 'application/octet-stream',
|
ContentType: mime.lookup(path) || 'application/octet-stream',
|
||||||
...conf
|
...conf
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user