Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

URL quote path segments over federation #3082

Merged
merged 2 commits into from Apr 10, 2018
Merged

Conversation

erikjohnston
Copy link
Member

No description provided.

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

and this is why tests are a thing.

Returns:
str
"""
return prefix + path % tuple(urllib.quote(arg) for arg in args)
Copy link
Member

Choose a reason for hiding this comment

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

urllib.quote doesn't escape / by default...

@ara4n
Copy link
Member

ara4n commented Apr 10, 2018

ftr, this was to fix: 2018-04-10 03:06:36,817 - synapse.federation.federation_client - 278 - INFO - PUT-65- Failed to get PDU $Toe-Tapper's Clean Llama Directs Mr. Mousey's Nervous Goat:ponies.im from timepath.xyz because 400 Bad Request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants