mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-28 07:24:09 +03:00
fix utf8 in tests for jsonp
This commit is contained in:
parent
aaabf70a1c
commit
59be7846e9
@ -36,7 +36,7 @@ def api_call(requesttype):
|
||||
world.response_format = fmt
|
||||
elif fmt in ('json', 'jsonv2'):
|
||||
if 'json_callback' in world.params:
|
||||
world.json_callback = world.params['json_callback']
|
||||
world.json_callback = world.params['json_callback'].encode('utf8')
|
||||
assert world.page.startswith(world.json_callback + '(')
|
||||
assert world.page.endswith(')')
|
||||
world.page = world.page[(len(world.json_callback)+1):-1]
|
||||
|
Loading…
Reference in New Issue
Block a user