1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00

fix post deode bug

This commit is contained in:
Xuan Sang LE 2021-01-29 19:44:03 +00:00 committed by lxsang
parent 6b84a9bac8
commit 12fe6ef4dc

View File

@ -1495,7 +1495,7 @@ char *post_data_decode(void *client, int len)
char *ptr = query;
int readlen = len > BUFFLEN ? BUFFLEN : len;
int read = 0, stat = 1;
while (readlen > 0 && stat > 0)
while (readlen > 0 && stat >= 0)
{
stat = antd_recv_upto(client, ptr + read, readlen);
if (stat > 0)
@ -1613,4 +1613,4 @@ int compressable(char *ctype)
}
return 0;
}
#endif
#endif