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 HTTPBody length calculation for utf8 strings. #60

Merged
merged 9 commits into from
Oct 23, 2023
Merged

Conversation

tib
Copy link
Contributor

@tib tib commented Oct 23, 2023

This PR aims to fix the byte length calculation for utf8 strings.

Copy link
Contributor

@czechboy0 czechboy0 left a comment

Choose a reason for hiding this comment

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

Great catch, thank you @tib!

@czechboy0
Copy link
Contributor

@swift-server-bot add to allowlist

@czechboy0
Copy link
Contributor

Please rerun ./scripts/soundness to fix up formatting and such.

@czechboy0
Copy link
Contributor

I'll do the 5.9 bump separately (#61), please back out any of the changes forced by swift-format 5.9 and use 5.8 instead.

@czechboy0
Copy link
Contributor

The soundness script is still unhappy it seems

@tib
Copy link
Contributor Author

tib commented Oct 23, 2023

Now I've got this in Docker running 5.8, based on the dockerfile, previously I was using an Amazon Linux 5.8.1 instance and there were no soundness issues there... strange, tho. ¯\_(ツ)_/¯

@czechboy0 czechboy0 merged commit edaec9c into apple:main Oct 23, 2023
@czechboy0 czechboy0 added the 🔨 semver/patch No public API change. label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants