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

"bug"/confusing feature: the RawRouter doesn't default to Raw codec #409

Open
jsoverson opened this issue Aug 17, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jsoverson
Copy link
Contributor

Describe the bug
The RawRouter defaults to the Json codec which means you get JSON-stringified base64 bytes if you try to return what most would consider a "raw" HTTP body to be.

To Reproduce
Create a raw HTTP router component and return JSON bytes as the response (w/ JSON content-type header)

Expected behavior
The HTTP response looks and feels like normal JSON

Actual behavior
You get a base64-ed string that – when decoded – is the JSON you'd expect.

Proposal
Change the default codec for the Raw router to be Raw instead of Json.

@jsoverson jsoverson added the bug Something isn't working label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant