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: UTF-8 handling for request bodies #1120

Merged
merged 2 commits into from
Nov 1, 2021
Merged

fix: UTF-8 handling for request bodies #1120

merged 2 commits into from
Nov 1, 2021

Conversation

frekw
Copy link
Collaborator

@frekw frekw commented Nov 1, 2021

zio-http just does body.data.map(_.toChar) which breaks for UTF-8 encoded bodies.

Not sure if treating everything as UTF-8 is the perfect fix, but at least it's better than breaking on UTF-8 :)

frekw added 2 commits November 1, 2021 11:08
zio-http just does body.bytes.map(_.toChar) which breaks
for UTF-8 encoded bodies.
@ghostdogpr
Copy link
Owner

Funny, zio/zio-http#279 was actually reported by my colleague at work 😄

@ghostdogpr ghostdogpr merged commit 62f2264 into ghostdogpr:master Nov 1, 2021
@frekw frekw deleted the fix/incorrect-charset-decodingn branch November 1, 2021 14:21
@frekw
Copy link
Collaborator Author

frekw commented Nov 1, 2021

Haha small world (at least when you're programming Scala?) :D

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