summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c
diff options
context:
space:
mode:
author Cowering <cowering@users.noreply.github.com>2015-07-04 18:48:18 -0500
committer Cowering <cowering@users.noreply.github.com>2015-07-08 23:37:54 -0500
commit43ef9c65e05259f8566c99f7f3d410c0eef6fa25 (patch)
tree1f474f7e47fc27e1133da53da7ac345138c43f15 /3rdparty/mongoose/examples/cookie_authentication/cookie_auth.c
parent6e855b9cf7c65f17ed087222c26497688fffe5e4 (diff)
newest mongoose.. PRETTY sure I didn't alter anything (NW)
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;