Skip to content

Fix invalid routing path due to spaces inside the json - #288

Open
omartijn wants to merge 1 commit into
M4rtinK:masterfrom
omartijn:fix_json_uri_encoding
Open

Fix invalid routing path due to spaces inside the json#288
omartijn wants to merge 1 commit into
M4rtinK:masterfrom
omartijn:fix_json_uri_encoding

Conversation

@omartijn

Copy link
Copy Markdown

In newer versions, urllib rejects paths containing control characters,
which includes spaces. Since json.dumps adds spaces by default, this
caused the request to be rejected locally, preventing routing from
working.

This change was tested on my device and works locally. Tested with the
most recent version of osm-scout-server on SFOS 3.3.

In newer versions, urllib rejects paths containing control characters,
which includes spaces. Since `json.dumps` adds spaces by default, this
caused the request to be rejected locally, preventing routing from
working.

This change was tested on my device and works locally. Tested with the
most recent version of osm-scout-server on SFOS 3.3.
@M4rtinK

M4rtinK commented Jun 11, 2020

Copy link
Copy Markdown
Owner

Thanks for the PR & sorry for not checking this out earlier. Looks good to me & I should be able to test it in the next day or two. :)

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