forked from loafle/openapi-generator-original
add safe argument to quote method in python template to avoid unquoted parameter in path parameter (#4457)
Closes #4391
This commit is contained in:
parent
42a0491696
commit
6a080d3a0c
@ -107,7 +107,7 @@ class ApiClient(object):
|
||||
collection_formats)
|
||||
for k, v in path_params:
|
||||
resource_path = resource_path.replace(
|
||||
'{%s}' % k, quote(str(v)))
|
||||
'{%s}' % k, quote(str(v), safe=""))
|
||||
|
||||
# query parameters
|
||||
if query_params:
|
||||
|
@ -116,7 +116,7 @@ class ApiClient(object):
|
||||
collection_formats)
|
||||
for k, v in path_params:
|
||||
resource_path = resource_path.replace(
|
||||
'{%s}' % k, quote(str(v)))
|
||||
'{%s}' % k, quote(str(v), safe=""))
|
||||
|
||||
# query parameters
|
||||
if query_params:
|
||||
|
Loading…
x
Reference in New Issue
Block a user