Skip cookie comma separation test

Rack updated the RFC they're adhering to when parsing cookies, now no
longer including commas.

There's still an open question as mentioned in:
https://github.com/rails/rails/issues/38420

However, the resilience test is no longer as well needed as it once was
and we can move forward separately. If not, this is easily revertible.
上级 f3eaddb7
......@@ -367,7 +367,7 @@ GEM
thor
raabro (1.1.6)
racc (1.4.16)
rack (2.1.1)
rack (2.2.1)
rack-cache (1.10.0)
rack (>= 0.4)
rack-protection (2.0.7)
......@@ -609,4 +609,4 @@ DEPENDENCIES
websocket-client-simple!
BUNDLED WITH
2.1.2
2.1.4
......@@ -592,12 +592,6 @@ class RequestCookie < BaseRequestTest
request = stub_request("HTTP_COOKIE" => "_session_id=c84ace84796670c052c6ceb2451fb0f2; is_admin=yes")
assert_equal "c84ace84796670c052c6ceb2451fb0f2", request.cookies["_session_id"], request.cookies.inspect
assert_equal "yes", request.cookies["is_admin"], request.cookies.inspect
# some Nokia phone browsers omit the space after the semicolon separator.
# some developers have grown accustomed to using comma in cookie values.
request = stub_request("HTTP_COOKIE" => "_session_id=c84ace847,96670c052c6ceb2451fb0f2;is_admin=yes")
assert_equal "c84ace847", request.cookies["_session_id"], request.cookies.inspect
assert_equal "yes", request.cookies["is_admin"], request.cookies.inspect
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册