mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-07-13 20:13:34 +02:00
Small little improvement
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user