From 62f3f3840f892fa62758773addc86188375c0c71 Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Sat, 29 Feb 2020 18:29:26 +0100 Subject: [PATCH] Fix `responseType` typo --- documentation/migration-guides.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/migration-guides.md b/documentation/migration-guides.md index 8b6dda0d7..80aded453 100644 --- a/documentation/migration-guides.md +++ b/documentation/migration-guides.md @@ -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); }