Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
7e175111
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7e175111
编写于
12月 22, 2008
作者:
P
Pratik Naik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename RackRequest to Request
上级
408ec6c0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
11 addition
and
11 deletion
+11
-11
actionpack/lib/action_controller.rb
actionpack/lib/action_controller.rb
+2
-2
actionpack/lib/action_controller/dispatcher.rb
actionpack/lib/action_controller/dispatcher.rb
+1
-1
actionpack/lib/action_controller/integration.rb
actionpack/lib/action_controller/integration.rb
+1
-1
actionpack/lib/action_controller/request.rb
actionpack/lib/action_controller/request.rb
+1
-1
actionpack/test/controller/rack_test.rb
actionpack/test/controller/rack_test.rb
+3
-3
actionpack/test/controller/request_test.rb
actionpack/test/controller/request_test.rb
+3
-3
未找到文件。
actionpack/lib/action_controller.rb
浏览文件 @
7e175111
...
...
@@ -38,7 +38,7 @@ module ActionController
# TODO: Review explicit to see if they will automatically be handled by
# the initilizer if they are really needed.
def
self
.
load_all!
[
Base
,
CGIHandler
,
CgiRequest
,
R
ackRequest
,
RackRequest
,
Http
::
Headers
,
UrlRewriter
,
UrlWriter
]
[
Base
,
CGIHandler
,
CgiRequest
,
R
equest
,
Response
,
Http
::
Headers
,
UrlRewriter
,
UrlWriter
]
end
autoload
:AbstractRequest
,
'action_controller/request'
...
...
@@ -59,7 +59,7 @@ def self.load_all!
autoload
:MiddlewareStack
,
'action_controller/middleware_stack'
autoload
:MimeResponds
,
'action_controller/mime_responds'
autoload
:PolymorphicRoutes
,
'action_controller/polymorphic_routes'
autoload
:R
ackR
equest
,
'action_controller/request'
autoload
:Request
,
'action_controller/request'
autoload
:RecordIdentifier
,
'action_controller/record_identifier'
autoload
:Response
,
'action_controller/response'
autoload
:RequestForgeryProtection
,
'action_controller/request_forgery_protection'
...
...
actionpack/lib/action_controller/dispatcher.rb
浏览文件 @
7e175111
...
...
@@ -83,7 +83,7 @@ def call(env)
end
def
_call
(
env
)
@request
=
R
ackR
equest
.
new
(
env
)
@request
=
Request
.
new
(
env
)
@response
=
Response
.
new
dispatch
end
...
...
actionpack/lib/action_controller/integration.rb
浏览文件 @
7e175111
...
...
@@ -371,7 +371,7 @@ def generic_url_rewriter
"SERVER_PORT"
=>
https?
?
"443"
:
"80"
,
"HTTPS"
=>
https?
?
"on"
:
"off"
}
UrlRewriter
.
new
(
R
ackR
equest
.
new
(
env
),
{})
UrlRewriter
.
new
(
Request
.
new
(
env
),
{})
end
def
name_with_prefix
(
prefix
,
name
)
...
...
actionpack/lib/action_controller/request.rb
浏览文件 @
7e175111
...
...
@@ -862,7 +862,7 @@ class UploadedTempfile < Tempfile
include
UploadedFile
end
class
R
ackR
equest
<
AbstractRequest
#:nodoc:
class
Request
<
AbstractRequest
#:nodoc:
attr_accessor
:session_options
class
SessionFixationAttempt
<
StandardError
#:nodoc:
...
...
actionpack/test/controller/rack_test.rb
浏览文件 @
7e175111
...
...
@@ -43,10 +43,10 @@ def setup
"REDIRECT_STATUS"
=>
"200"
,
"REQUEST_METHOD"
=>
"GET"
}
@request
=
ActionController
::
R
ackR
equest
.
new
(
@env
)
@request
=
ActionController
::
Request
.
new
(
@env
)
# some Nokia phone browsers omit the space after the semicolon separator.
# some developers have grown accustomed to using comma in cookie values.
@alt_cookie_fmt_request
=
ActionController
::
R
ackR
equest
.
new
(
@env
.
merge
({
"HTTP_COOKIE"
=>
"_session_id=c84ace847,96670c052c6ceb2451fb0f2;is_admin=yes"
}))
@alt_cookie_fmt_request
=
ActionController
::
Request
.
new
(
@env
.
merge
({
"HTTP_COOKIE"
=>
"_session_id=c84ace847,96670c052c6ceb2451fb0f2;is_admin=yes"
}))
end
def
default_test
;
end
...
...
@@ -218,7 +218,7 @@ def test_body_should_be_rewound
@env
[
'CONTENT_TYPE'
]
=
'application/x-www-form-urlencoded; charset=utf-8'
# Read the request body by parsing params.
request
=
ActionController
::
R
ackR
equest
.
new
(
@env
)
request
=
ActionController
::
Request
.
new
(
@env
)
request
.
request_parameters
# Should have rewound the body.
...
...
actionpack/test/controller/request_test.rb
浏览文件 @
7e175111
...
...
@@ -856,7 +856,7 @@ def parse_body(body)
env
=
{
'rack.input'
=>
StringIO
.
new
(
body
),
'CONTENT_TYPE'
=>
'application/xml'
,
'CONTENT_LENGTH'
=>
body
.
size
.
to_s
}
ActionController
::
R
ackR
equest
.
new
(
env
).
request_parameters
ActionController
::
Request
.
new
(
env
).
request_parameters
end
end
...
...
@@ -866,7 +866,7 @@ def parse_body(body)
env
=
{
'rack.input'
=>
StringIO
.
new
(
body
),
'HTTP_X_POST_DATA_FORMAT'
=>
'xml'
,
'CONTENT_LENGTH'
=>
body
.
size
.
to_s
}
ActionController
::
R
ackR
equest
.
new
(
env
).
request_parameters
ActionController
::
Request
.
new
(
env
).
request_parameters
end
end
...
...
@@ -888,6 +888,6 @@ def parse_body(body,content_type)
env
=
{
'rack.input'
=>
StringIO
.
new
(
body
),
'CONTENT_TYPE'
=>
content_type
,
'CONTENT_LENGTH'
=>
body
.
size
.
to_s
}
ActionController
::
R
ackR
equest
.
new
(
env
).
request_parameters
ActionController
::
Request
.
new
(
env
).
request_parameters
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录