mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
DEV: Upgrade Rails to version 7.1
--------- Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:

committed by
Loïc Guitaut

parent
7b8863fcd5
commit
8d249457e8
@ -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