Skip to content

Instantly share code, notes, and snippets.

@JoeDupuis
Created May 28, 2023 02:52
Show Gist options
  • Save JoeDupuis/1d219656f4d9d6dd3421e98b4eb00eea to your computer and use it in GitHub Desktop.
Save JoeDupuis/1d219656f4d9d6dd3421e98b4eb00eea to your computer and use it in GitHub Desktop.
Repro 48195 - Cookies are being set incorrectly
require 'rack/response'
run ->(env) do
response = Rack::Response[200,{},[]]
response.set_cookie('Cookie1', 123)
response.set_cookie('Cookie2', 123)
response.to_a
end
source "http://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "puma", "~> 5.0"
gem "rack", ENV["RACK_2"] ? "~> 2.2.7" : "~> 3.0.7"
gem "rackup"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment