Skip to content

fix: passthrough for binary files#363

Closed
Techn1x wants to merge 2 commits intopretenderjs:masterfrom
Techn1x:fix-fetch-image-blob
Closed

fix: passthrough for binary files#363
Techn1x wants to merge 2 commits intopretenderjs:masterfrom
Techn1x:fix-fetch-image-blob

Conversation

@Techn1x
Copy link

@Techn1x Techn1x commented Jan 29, 2024

Fixes #305
Fixes #72
Fixes miragejs/ember-cli-mirage#1915

I don't actually fully understand the change being made here, I've just converted the fix from this comment into a PR #305 (comment)
It works great for me. Full credit to @ankology

  • I left off the tests from that comment, not sure exactly how to integrate them as tests on this repo

Happy to adjust this PR to update with any suggestions. Would love for it to be merged, but even if it doesn't it at least provides an easier way for people to see the code diff & write their own pnpm patches or point their repos at this branch.


Unrelated, but I would implore this fix PR be merged as well #355
It's another passthrough bug that I've had to write a pnpm patch for in my projects.

@Techn1x
Copy link
Author

Techn1x commented Jan 29, 2024

@xg-wang as requested #305 (comment)

Let me know if there's anything I can do to get this merged.

@Techn1x
Copy link
Author

Techn1x commented Jun 17, 2025

MSW is the way forward

@Techn1x Techn1x closed this Jun 17, 2025
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.

Passthrough for binary files not working Mirage-overridden fetch cannot download an image binary blob Binary files are converted to strings

1 participant