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 returning images from endpoints in dev #6163

Merged
merged 3 commits into from
Feb 7, 2023
Merged

Conversation

Princesseuh
Copy link
Member

Changes

I was originally not exactly working on this, but this turned out to be slightly relevant. This make sure we return a response body with the proper encoding, as previously we'd always return it directly as a string. It's still not perfect how we handle this, as we don't return the proper mime type in some contexts.. but I don't think I know enough about this to fix it at this time

Fix #5660

Testing

Added a test

Docs

N/A

@changeset-bot
Copy link

changeset-bot bot commented Feb 7, 2023

🦋 Changeset detected

Latest commit: ee45840

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Feb 7, 2023
@Princesseuh Princesseuh self-assigned this Feb 7, 2023
@Princesseuh Princesseuh merged commit cee70f5 into main Feb 7, 2023
@Princesseuh Princesseuh deleted the fix/endpoints-images branch February 7, 2023 15:52
@astrobot-houston astrobot-houston mentioned this pull request Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Returning png with hex or base64 in APIRoute doesn't work in dev
2 participants