Skip to content

Reject text paths in decoded replace - #193

Open
Mirochill wants to merge 1 commit into
python-hyper:masterfrom
Mirochill:fix-176-decoded-path-text
Open

Reject text paths in decoded replace#193
Mirochill wants to merge 1 commit into
python-hyper:masterfrom
Mirochill:fix-176-decoded-path-text

Conversation

@Mirochill

@Mirochill Mirochill commented May 19, 2026

Copy link
Copy Markdown

Summary

Make DecodedURL.replace(path=...) reject plain text strings for path, matching the existing behavior of URL(path=...).

Without this guard, DecodedURL.replace(path=support/woo) treats the string as an iterable and encodes it one character at a time, producing a character-by-character path.

Fixes #176.

Validation

Not run locally.

Static validation:

  • git diff --check HEAD~1..HEAD
@Mirochill
Mirochill marked this pull request as ready for review May 20, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant