Small little improvement

This commit is contained in:
Wessel T
2019-02-19 21:17:35 +01:00
parent c2ca8f5a16
commit af614c7740
4 changed files with 4 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ module.exports = (url, method) => {
};
common.forEach((v) => {
module.exports[v.toLowerCase()] = (url, method = v) => {
return new request(url, method);
module.exports[v.toLowerCase()] = (url, method) => {
return new request(url, Object.assign({ method: v }, method));
}
});