chalice icon indicating copy to clipboard operation
chalice copied to clipboard

URL query parameter not decoding variable

Open abdullah353 opened this issue 8 years ago • 1 comments

API Defination.

@app.route('/user/{name}')
def user_name(name):
    return name

now the following Get request will return. visiting the /user/first|last will assign the variable name to first%7Clast instead of first-last

Is this intentional or you have to plan to return the decoded value from url ?

abdullah353 avatar Jan 19 '18 05:01 abdullah353

This is intentional and we can't decode by default without it being a backwards incompatible change. There's more discussion here #511. Closing in favor of the existing issue.

joguSD avatar Jan 30 '18 18:01 joguSD