From 564683d25a6601087e8e936acfef240996425441 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Fri, 5 Jun 2015 18:09:27 +0100 Subject: [PATCH] Fix timeout for cookie auth example --- examples/cookie_authentication/cookie_auth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/cookie_authentication/cookie_auth.c b/examples/cookie_authentication/cookie_auth.c index f3621fae..c35e0445 100644 --- a/examples/cookie_authentication/cookie_auth.c +++ b/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;