问题
I recently upgraded my App Engine SDK from 1.8.4 to 1.8.8. This seemed to have changed how string parameters are coming into my endpoint methods on the development server. Previously they were already URL decoded for me. Now it seems I must do my own URL decoding of each string parameter. Was this an intentional change or maybe I am doing something wrong?
For instance, I have a simple method that essentially just echos a string.
A call to it looks like:
GET http://localhost:8088/_ah/api/sync/v1/echoMessage/hello%20world
Previously, I'd get the string parameter as "hello world" but now I'm getting "hello%20world". This happens whether I use the Explorer API or in my generated Android client library.
Am I expected to do URL decoding of each string? That seems cumbersome and wrong. Any help is appreciated.
来源:https://stackoverflow.com/questions/20271020/change-in-url-encoding-of-cloud-endpoint-parameters