fix: Fixes broken multipart/form-data construction#38644
fix: Fixes broken multipart/form-data construction#38644KumarHarshit3603 wants to merge 2 commits into
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughA recursive parameter order was corrected in the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey! @ggazzo can you please review this PR 😄 |
Proposed changes
buildFormDataso it walks nested data correctly: call order is nowdata[key], formData.Issue(s)
File(no public issue linked).Steps to test or reproduce
{ meta: { tag: 'note' }, file: new File(['hi'], 'greet.txt') }.develop,RestClient.post('/v1/upload', payload)sends an empty body.meta[tag]andfileinFormData.cd packages/api-client && yarn test(add a small spec to assertFormDataentries).Further comments
packages/api-client/src/index.ts; no public API changes.