mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
DEV: Upgrade Rails to 7.1
This commit is contained in:

committed by
Loïc Guitaut

parent
69c99a82dd
commit
081b00391e
@ -21,11 +21,11 @@ RSpec.describe Auth::DefaultCurrentUserProvider do
|
||||
end
|
||||
|
||||
def get_cookie_info(cookie_jar, name)
|
||||
headers = {}
|
||||
response = ActionDispatch::Response.new
|
||||
cookie_jar.always_write_cookie = true
|
||||
cookie_jar.write(headers)
|
||||
cookie_jar.write(response)
|
||||
|
||||
header = headers["Set-Cookie"]
|
||||
header = response.headers["Set-Cookie"]
|
||||
return if header.nil?
|
||||
|
||||
info = {}
|
||||
|
Reference in New Issue
Block a user