mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
fix: post type
This commit is contained in:
@@ -79,11 +79,7 @@ const custom = got.extend({
|
||||
(options) => {
|
||||
// compatible with axios api
|
||||
if (options.data) {
|
||||
if (typeof options.data === 'object') {
|
||||
options.json = options.json || options.data;
|
||||
} else {
|
||||
options.body = options.body || options.data;
|
||||
}
|
||||
options.body = options.body || options.data;
|
||||
}
|
||||
if (options.responseType === 'buffer') {
|
||||
options.encoding = null;
|
||||
|
||||
Reference in New Issue
Block a user