Skip to content

Conversation

@QuinnHarris
Copy link
Contributor

RFC 3986 explicitly allows both : and @ to appear unescaped in URL path segments and query strings (pchar):

pchar = unreserved / pct-encoded / sub-delims / ":" / "@"

However, zio-http currently percent-encodes these characters even when they appear in contexts where they are treated as data rather than delimiters.

This PR updates URL rendering to allow : and @ to remain unescaped in path and query segments both using the encodeComponentInto function.

I specifically required this change with the google validateAddress with URL https://addressvalidation.googleapis.com/v1:validateAddress that does not work when its percent-encodes.

References

  • RFC 3986 §3.3 (Path)
  • RFC 3986 §3.4 (Query)

@netlify
Copy link

netlify bot commented Dec 19, 2025

Deploy Preview for zio-http ready!

Name Link
🔨 Latest commit 9e9088d
🔍 Latest deploy log https://app.netlify.com/projects/zio-http/deploys/6945bfe17773d30008263c9b
😎 Deploy Preview https://deploy-preview-3870--zio-http.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant