Skip to content

Commit 1102151

Browse files
committed
revert: Do not expect body on 302 responses
This reverts commit f1c265f.
1 parent 1c24c56 commit 1102151

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/openapi-typescript/fetch-factory.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ function fetchFactory<Paths>(options?: InitParameters) {
3131
const fetchInit = buildInit(defaultInit, options);
3232
const response = await fetchMethod(url, fetchInit);
3333
return new Response(
34-
[101, 204, 205, 302, 304].includes(response.status)
35-
? null
36-
: response.body,
34+
[101, 204, 205, 304].includes(response.status) ? null : response.body,
3735
{
3836
status: response.status,
3937
headers: response.headers,

0 commit comments

Comments
 (0)