pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-hyper/rfc3986/pull/106

"all" rel="stylesheet" href="https://github.githubassets.com/assets/github-eab9c5888b163e42.css" /> percent-encode path components in add_path (#104) by busche · Pull Request #106 · python-hyper/rfc3986 · GitHub
Skip to content

percent-encode path components in add_path (#104)#106

Open
busche wants to merge 2 commits into
python-hyper:mainfrom
busche:main
Open

percent-encode path components in add_path (#104)#106
busche wants to merge 2 commits into
python-hyper:mainfrom
busche:main

Conversation

@busche

@busche busche commented May 8, 2023

Copy link
Copy Markdown

PR proposal as requested by @sigmavirus24 in #104 .

Feel free to comment & suggest.

@busche

busche commented Jun 27, 2023

Copy link
Copy Markdown
Author

Hi @sigmavirus24

what can I contribute in order to get my patch merged?

Best,
André

Comment thread src/rfc3986/builder.py
path = "{}/{}".format(existing_path.rstrip("/"), path.lstrip("/"))

return self.add_path(path)
return self.add_path(path, encoding)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
return self.add_path(path, encoding)
return self.add_path(path, encoding="utf-8")

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy