mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
fix(utils): request without hostname (#9649)
This commit is contained in:
@@ -125,7 +125,7 @@ const httpWrap = (func) => {
|
||||
requestWrapper(url.toString(), request);
|
||||
} else {
|
||||
const req = url;
|
||||
requestWrapper(req.url || req.href || `${req.protocol}//${req.hostname}${req.path}`, req);
|
||||
requestWrapper(req.url || req.href || `${req.protocol}//${req.hostname || req.host}${req.path}`, req);
|
||||
}
|
||||
} else {
|
||||
requestWrapper(url, request);
|
||||
|
||||
Reference in New Issue
Block a user