M4rtinK / modrana

ModRana is a flexible GPS navigation system for mobile devices. This is the main upstream modRana source code repository - waiting for your pull requests & patches! :)
www.modrana.org
GNU General Public License v3.0
66 stars 21 forks source link

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

Open omartijn opened 4 years ago

omartijn commented 4 years ago

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 commented 4 years ago

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. :)