From d603bde35f698564c028108d24c6891cec3b8ea1 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Thu, 20 Jul 2023 15:09:33 -0700 Subject: [PATCH] fix: revert attempting to convert 'text/plain', leave as data in GaxiosError (#556) --- src/common.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common.ts b/src/common.ts index 700eb4f4..5807df38 100644 --- a/src/common.ts +++ b/src/common.ts @@ -239,8 +239,6 @@ function translateData(responseType: string | undefined, data: any) { return JSON.parse(Buffer.from(data).toString('utf8')); case 'blob': return JSON.parse(data.text()); - case 'text': - return JSON.parse(data.text()); default: return data; }