Skip to content

Commit

Permalink
Update parse-body.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Sep 13, 2020
1 parent 8be0890 commit cc71176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/as-promise/parse-body.ts
Expand Up @@ -18,7 +18,7 @@ const parseBody = (response: Response, responseType: ResponseType, parseJson: Pa
}

if (responseType === 'buffer') {
return Buffer.from(rawBody.buffer);
return rawBody;
}

throw new ParseError({
Expand Down

0 comments on commit cc71176

Please sign in to comment.