File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " swagger-typescript-api " : patch
3+ ---
4+
5+ Fix handling of FormData inputs in Fetch HTTP client
6+
7+ Previously, when users passed a ` FormData ` object directly to the Fetch
8+ client's ` multipart/form-data ` formatter, it would incorrectly attempt to use
9+ ` Object.keys() ` on the FormData instance, which returns an empty array. This
10+ caused the FormData to be processed incorrectly.
11+
12+ The fix adds a type check to return FormData instances unchanged, allowing
13+ users to have full control over FormData construction when needed whilst
14+ maintaining backwards compatibility for object inputs. This aligns the Fetch
15+ client behaviour with the existing Axios client implementation.
16+
17+ This resolves issues where users needed to send multipart requests with
18+ multiple entries for the same key, which is only possible with direct FormData
19+ manipulation.
You can’t perform that action at this time.
0 commit comments