Skip to content

Commit

Permalink
Fix responseType typo
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Feb 29, 2020
1 parent e22a303 commit 62f3f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/migration-guides.md
Expand Up @@ -114,7 +114,7 @@ const gotInstance = got.extend({
response => {
const {options} = response.request;
if (options.jsonReviver && options.responseType === 'json') {
options.responseType = 'default';
options.responseType = 'text';
response.body = JSON.parse(response.body, options.jsonReviver);
}

Expand Down

0 comments on commit 62f3f38

Please sign in to comment.