mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
@@ -53,10 +53,10 @@ module Hijack
|
||||
# this trick avoids double render, also avoids any litter that the controller hooks
|
||||
# place on the response
|
||||
instance = controller_class.new
|
||||
response = ActionDispatch::Response.new
|
||||
instance.response = response
|
||||
response = ActionDispatch::Response.new.tap { _1.request = request_copy }
|
||||
instance.set_response!(response)
|
||||
instance.set_request!(request_copy)
|
||||
|
||||
instance.request = request_copy
|
||||
original_headers&.each { |k, v| instance.response.headers[k] = v }
|
||||
|
||||
view_start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
||||
|
||||
Reference in New Issue
Block a user