mirror of
https://github.com/lxsang/ant-http
synced 2024-12-27 09:18:22 +01:00
fix post deode bug
This commit is contained in:
parent
6b84a9bac8
commit
12fe6ef4dc
@ -1495,7 +1495,7 @@ char *post_data_decode(void *client, int len)
|
|||||||
char *ptr = query;
|
char *ptr = query;
|
||||||
int readlen = len > BUFFLEN ? BUFFLEN : len;
|
int readlen = len > BUFFLEN ? BUFFLEN : len;
|
||||||
int read = 0, stat = 1;
|
int read = 0, stat = 1;
|
||||||
while (readlen > 0 && stat > 0)
|
while (readlen > 0 && stat >= 0)
|
||||||
{
|
{
|
||||||
stat = antd_recv_upto(client, ptr + read, readlen);
|
stat = antd_recv_upto(client, ptr + read, readlen);
|
||||||
if (stat > 0)
|
if (stat > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user