mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-03 18:48:12 +08:00
feat: replace baseUrl to prefixUrl when got's next version (#2996)
* enhance: replace baseUrl to prefixUrl when got's next version * test: baseUrl
This commit is contained in:
@@ -40,6 +40,9 @@ const custom = got.extend({
|
||||
if (options.query) {
|
||||
options.searchParams = options.query; // for Got v11 after
|
||||
}
|
||||
if (options.baseUrl) {
|
||||
options.prefixUrl = options.baseUrl; // for Got next version
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user