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

(Encoded)URL round-tripping of + in query #146

Merged
merged 2 commits into from
Dec 29, 2020

Conversation

twm
Copy link
Collaborator

@twm twm commented Dec 28, 2020

This demonstrates the failure afflicting twisted/treq#304

Before:

>>> URL(scheme='https', host='foo', query={'f+o o': 'b+a r'}).to_text()
'https://foo/?f%2Bo o=b%2Ba r'

After:

>>> URL(scheme='https', host='foo', query={'f+o o': 'b+a r'}).to_text()
'https://foo/?f+o o=b+a r'

If spaces pass unencoded, surely + can.
@twm twm changed the title Test (Encoded)URL round-tripping of + in query (Encoded)URL round-tripping of + in query Dec 29, 2020
twm added a commit to twisted/treq that referenced this pull request Dec 29, 2020
@codecov
Copy link

codecov bot commented Dec 29, 2020

Codecov Report

Merging #146 (a9eba07) into ne-plus-ultra (5183099) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           ne-plus-ultra     #146   +/-   ##
==============================================
  Coverage          98.69%   98.69%           
==============================================
  Files                 13       13           
  Lines               1840     1840           
  Branches             212      212           
==============================================
  Hits                1816     1816           
  Misses                12       12           
  Partials              12       12           
Impacted Files Coverage Δ
src/hyperlink/test/test_url.py 99.82% <ø> (ø)
src/hyperlink/_url.py 96.98% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5183099...a9eba07. Read the comment docs.

twm added a commit to twisted/treq that referenced this pull request Dec 29, 2020
@twm twm mentioned this pull request Dec 29, 2020
Copy link
Collaborator

@glyph glyph left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the other aspect of this.

@glyph glyph merged commit b06994b into python-hyper:ne-plus-ultra Dec 29, 2020
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