Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): Fix multipart FormData map field format #3118

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

kitten
Copy link
Member

@kitten kitten commented Mar 31, 2023

Summary

The multipart request spec actually specifies that map is of type Record<string, string[]> rather than Record<string, string>. While this is easy to miss, it's likely for upload deduplication, which we don't do but have to respect.

Set of changes

  • Convert FormData map field to [prop: string]: [string]

@kitten kitten merged commit 2475443 into main Mar 31, 2023
@kitten kitten deleted the fix/multipart-map-format branch March 31, 2023 20:28
@github-actions github-actions bot mentioned this pull request Mar 31, 2023
@negezor
Copy link
Contributor

negezor commented Mar 31, 2023

My bad, thanks for the quick fix 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants