3 ms·
Someone actually just submitted a pull request to fix this on Github, which is now merged :-) I just cloned the source and compiled it successfully on Debian,
by udp 15y ago
Someone actually just submitted a pull request to fix this on Github, which is now merged :-)
I just cloned the source and compiled it successfully on Debian, and it all seems to work alright (I can't get hello_world.cc to crash.) If it happens again, could you possibly get me a stack trace?
By the way, if you look at the cookie output code:
for(Map::Item * Current = Client.Cookies.First; Current; Current = Current->Next)
if(strcmp(Current->Value, Client.Input.Cookies.Get(Current->Key)))
Socket << "\r\nSet-Cookie: " << Current->Key << "=" << Current->Value;
The strcmp() line checks the value of the cookie when received from the browser (Client.Input.Cookies) against the value of the cookie with any modifications (Client.Cookies).