chukong / quick-cocos2d-x

quick-cocos2d-x is a quick framework, based on cocos2d-x. Make mobile games in Lua.
http://quick-x.com/
1.48k stars 868 forks source link

使用了string.urlencode, string.urldecode数据不一致 #532

Closed wland closed 9 years ago

wland commented 9 years ago

客户端,服务端都使用了相同的 string.urlencode, string.urldecode函数

服务端发送:%7B%22an%22%3A%22onCheckUdidResult%22%2C%22msg%22%3A%5B0%5D%7D

客户端接收:%7B%22an%22%3A%22onCheckUdidResult%22%2C%22msg%22%3A%5B0%5D%7D0

quick 2.2.6 通过客户端 getResponseString() 获得数据 .StatusCode 200 , DataLength 64

wland commented 9 years ago

目测是:CCHTTPRequest 中 m_responseBuffer 多取了一位。

wland commented 9 years ago

经过使用其他客户端测试,发现是服务端ngnix的问题。