fix: got option.body

This commit is contained in:
DIYgod
2019-06-04 11:59:36 +08:00
parent feab46cb15
commit 3efdb57be0

View File

@@ -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;
} }