Skip to content

Commit 5d07fee

Browse files
committed
docs: reference issue 779 in changeset
1 parent 792e96c commit 5d07fee

File tree

29 files changed

+117
-130597
lines changed

29 files changed

+117
-130597
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Avoid response cloning in fetch HTTP client to prevent memory leaks (#779).

templates/base/http-clients/fetch-http-client.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class HttpClient<SecurityDataType = unknown> {
196196
body: typeof body === "undefined" || body === null ? null : payloadFormatter(body),
197197
}
198198
).then(async (response) => {
199-
const r = response.clone() as HttpResponse<T, E>;
199+
const r = response as HttpResponse<T, E>;
200200
r.data = (null as unknown) as T;
201201
r.error = (null as unknown) as E;
202202

0 commit comments

Comments
 (0)