summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
committer ImJezze <jezze@gmx.net>2015-07-20 08:11:41 +0200
commit4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch)
tree55eccacfca0e69435d0d4e6615205310ca11f271 /3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c
parentd132946c6f45aa8d271c6180e86f72dd08243048 (diff)
parent229785f695b26c702c8490792611f59d0366a933 (diff)
Merge pull request #5 from mamedev/master
Sync to base master
Diffstat (limited to '3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c')
-rw-r--r--3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c b/3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c
index f3621faeed7..c35e0445ef2 100644
--- a/3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c
+++ b/3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c
@@ -58,6 +58,7 @@ static int check_login_form_submission(struct mg_connection *conn) {
mg_printf(conn,
"HTTP/1.1 302 Moved\r\n"
"Set-Cookie: ssid=%s; expire=\"%s\"; http-only; HttpOnly;\r\n"
+ "Content-Length: 0\r\n"
"Location: /\r\n\r\n",
ssid, expire);
return MG_TRUE;