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
This commit is contained in:
Olav Morken 2018-11-30 08:33:43 +01:00
parent 32a3dd423c
commit 71cf0c9889
1 changed files with 1 additions and 1 deletions

View File

@ -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" : "",