提交 33e48d5f 编写于 作者: J Jamis Buck

Add a 'referer' attribute to TestRequest


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 32bc10d7
*SVN*
* Add a 'referer' attribute to TestRequest. [Jamis Buck]
* Ensure render :json => ... skips the layout. Closes #6808 [Josh Peek]
* Fix HTML::Node to output double quotes instead of single quotes. Closes #6845 [mitreandy]
......
......@@ -124,6 +124,10 @@ def recycle!
@request_method, @accepts, @content_type = nil, nil, nil
end
def referer
@env["HTTP_REFERER"]
end
private
def initialize_containers
@env, @cookies = {}, {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册