REST: actually add new cookie value
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 28 Nov 2018 08:41:36 +0000 (09:41 +0100)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 28 Nov 2018 08:41:36 +0000 (09:41 +0100)
src/rest-plugins/plugin_rest_openid_connect.c

index ca988387c7693e50c94d312e67070fa230e5a800..8f11455b4a100850231a067fcb112f17fb030262 100644 (file)
@@ -1429,7 +1429,7 @@ login_cont (struct GNUNET_REST_RequestHandle *con_handle,
                    "%s;Max-Age=%d",
                    cookie,
                    OIDC_COOKIE_EXPIRATION);
-  MHD_add_response_header (resp, "Set-Cookie", cookie);
+  MHD_add_response_header (resp, "Set-Cookie", header_val);
   MHD_add_response_header (resp, "Access-Control-Allow-Methods", "POST");
   GNUNET_CRYPTO_hash (cookie, strlen (cookie), &cache_key);