From 4003b36f72a74cce12eae28bdd6c8145ef0129f6 Mon Sep 17 00:00:00 2001 From: Michael Scrivo Date: Tue, 23 Apr 2024 09:28:02 -0400 Subject: [PATCH] fix(cookies): Remove joining with \n to fix compatibility with Rack 3. see https://github.com/github/secure_headers/issues/514 --- lib/secure_headers/middleware.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/secure_headers/middleware.rb b/lib/secure_headers/middleware.rb index e1c07c5b..db53ee3d 100644 --- a/lib/secure_headers/middleware.rb +++ b/lib/secure_headers/middleware.rb @@ -26,7 +26,7 @@ def flag_cookies!(headers, config) headers["Set-Cookie"] = cookies.map do |cookie| SecureHeaders::Cookie.new(cookie, config).to_s - end.join("\n") + end end end