mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
fix: got option.body
This commit is contained in:
@@ -76,6 +76,7 @@ const custom = got.extend({
|
|||||||
],
|
],
|
||||||
beforeRequest: [
|
beforeRequest: [
|
||||||
(options) => {
|
(options) => {
|
||||||
|
options.body = options.data;
|
||||||
if (options.responseType === 'buffer') {
|
if (options.responseType === 'buffer') {
|
||||||
options.encoding = null;
|
options.encoding = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user