mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
chore: bump got from 9.x to 10.x (#3875)
This commit is contained in:
@@ -101,8 +101,12 @@ const httpWrap = (func) => {
|
||||
const origin = func;
|
||||
return function(url, request) {
|
||||
if (typeof url === 'object') {
|
||||
const req = url;
|
||||
requestWrapper(req.url || req.href || `${req.protocol}//${req.hostname}${req.path}`, req);
|
||||
if (url instanceof URL) {
|
||||
requestWrapper(url.toString(), request);
|
||||
} else {
|
||||
const req = url;
|
||||
requestWrapper(req.url || req.href || `${req.protocol}//${req.hostname}${req.path}`, req);
|
||||
}
|
||||
} else {
|
||||
requestWrapper(url, request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user