Skip to content

fix(naxios): send Buffer request bodies as raw bytes - #103

Merged
stefanrudi merged 2 commits into
mainfrom
fix/naxios-buffer
Aug 4, 2026
Merged

fix(naxios): send Buffer request bodies as raw bytes#103
stefanrudi merged 2 commits into
mainfrom
fix/naxios-buffer

Conversation

@stefanrudi

Copy link
Copy Markdown
Contributor

Currently, the naxios implementation serializes Buffer request bodies with JSON.stringify() instead of sending the raw bytes. This breaks binary uploads and diverges from real axios behavior. Since we removed axios from the @cap-js/attachments plugin, we had to work around this with a local patch, but the correct fix belongs in cds-test itself.

@chgeo chgeo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stefanrudi
stefanrudi merged commit 4f150df into main Aug 4, 2026
4 checks passed
@stefanrudi
stefanrudi deleted the fix/naxios-buffer branch August 4, 2026 14:21
eric-pSAP pushed a commit to cap-js/attachments that referenced this pull request Aug 6, 2026
Replace custom axios patch in `withUser` with actual patch in cds-test.
Remove the patch-package when the
[PR](cap-js/cds-test#103) in cds-test is merged.
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