提交 d95a16c5 编写于 作者: E Emilio Tagua

Initialize @_request and @_response.

上级 2f59cd6f
...@@ -85,6 +85,8 @@ def controller_name ...@@ -85,6 +85,8 @@ def controller_name
def initialize(*) def initialize(*)
@_headers = {"Content-Type" => "text/html"} @_headers = {"Content-Type" => "text/html"}
@_status = 200 @_status = 200
@_request = nil
@_response = nil
super super
end end
...@@ -99,7 +101,7 @@ def params=(val) ...@@ -99,7 +101,7 @@ def params=(val)
# Basic implementations for content_type=, location=, and headers are # Basic implementations for content_type=, location=, and headers are
# provided to reduce the dependency on the RackDelegation module # provided to reduce the dependency on the RackDelegation module
# in Renderer and Redirector. # in Renderer and Redirector.
def content_type=(type) def content_type=(type)
headers["Content-Type"] = type.to_s headers["Content-Type"] = type.to_s
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册