mirror of
https://github.com/lxsang/ant-http
synced 2025-07-24 17:49:46 +02:00
fix cookie problem
This commit is contained in:
@ -200,12 +200,13 @@ int __f(int client, const char* file)
|
||||
LOG("Cannot read : %s\n", file);
|
||||
return 0;
|
||||
}
|
||||
fgets(buf, sizeof(buf), ptr);
|
||||
while(!feof(ptr))
|
||||
;
|
||||
while(fgets(buf, sizeof(buf), ptr) != NULL)
|
||||
{
|
||||
nbytes = send(client, buf, strlen(buf), 0);
|
||||
if(nbytes == -1) return 0;
|
||||
fgets(buf, sizeof(buf), ptr);
|
||||
//LOG("READ : %s\n", buf);
|
||||
//fgets(buf, sizeof(buf), ptr);
|
||||
}
|
||||
fclose(ptr);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user