From 71cf0c98892942ab2d25904cabcd8e29119cb299 Mon Sep 17 00:00:00 2001 From: Olav Morken Date: Fri, 30 Nov 2018 08:33:43 +0100 Subject: [PATCH] Fix trailing semi-colon in Set-Cookie header A trailing semi-colon in the Set-Cookie header confuses the AWS Elastic Load Balancer. This patch fixes the code that generates the Set-Cookie header so that it no longer ends with a semi-colon. Fixes issue #190 --- auth_mellon_cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_mellon_cookie.c b/auth_mellon_cookie.c index 445022f..8394c18 100644 --- a/auth_mellon_cookie.c +++ b/auth_mellon_cookie.c @@ -79,7 +79,7 @@ static const char *am_cookie_params(request_rec *r) http_only_cookie = cfg->http_only; return apr_psprintf(r->pool, - "Version=1; Path=%s; Domain=%s%s%s%s;", + "Version=1; Path=%s; Domain=%s%s%s%s", cookie_path, cookie_domain, http_only_cookie ? "; HttpOnly" : "", secure_cookie ? "; secure" : "",