mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +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;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user