Skip to content

Commit f626d91

Browse files
fix: use decoded body (or text) in response
This avoids a failure mode where the decode transforms the decoded value, which is then dropped.
1 parent 140d2b4 commit f626d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/superagent-wrapper/src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const patchRequest = <
144144
E.map((body) =>
145145
decodedResponse<Route>({
146146
status,
147-
body: bodyOrText,
147+
body,
148148
original: res,
149149
} as SuccessfulResponses<Route>),
150150
),

0 commit comments

Comments
 (0)