Change in URL encoding of Cloud Endpoint parameters?

时光总嘲笑我的痴心妄想 提交于 2020-01-05 08:24:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!