You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ParsedURL::to_string() method was not re-encoding special
characters in the authority component, causing URLs with percent-encoded
characters in userinfo (like %40 for @) to become invalid after
serialization.
This fix adds proper authority encoding by:
- Separating userinfo from host at the last @ character
- Encoding only the userinfo part while preserving host[:port]
- Using appropriate allowed characters for authority encoding
Added comprehensive tests to verify correct round-trip behavior for
various URL patterns including encoded @, spaces, and multiple special
characters in the authority.
0 commit comments