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

Add quote parameter to specify which character should be percent-encoded in path and query #405

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

lexiforest
Copy link
Owner

The safe string is now a reasonable default: !#$%&'()*+,/:;=?@[]~. Letters like and { will be quoted, which is what most people would expect.

  • If you want to remove something from the string, e.g. :, add quote=":".
  • If you want to completely turn off the automatic quote, use quote=False.

See the unittest in the diff for more examples.

@lexiforest lexiforest changed the title Add quote parameter to specify which character should be percent-encoded in path and query, close #394 Add quote parameter to specify which character should be percent-encoded in path and query Oct 6, 2024
@lexiforest lexiforest merged commit 93e551d into main Oct 8, 2024
14 checks passed
perkfly pushed a commit that referenced this pull request Oct 8, 2024
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