diff options
author | James Tucker <raggi@google.com> | 2012-12-29 15:28:25 -0500 |
---|---|---|
committer | James Tucker <raggi@google.com> | 2012-12-29 15:28:56 -0500 |
commit | 8adaab4b6548fe323eb17943eece172c1bb445c0 (patch) | |
tree | add3e9d1d6d703389b12cff797a0365c30f8b164 /test | |
parent | 84b4a9f276c34318f7a76734f16a09aedc58b1c9 (diff) | |
download | rack-8adaab4b6548fe323eb17943eece172c1bb445c0.tar.gz |
Do not fail on cookies that are not URI escaped
* Closes #360
Diffstat (limited to 'test')
-rw-r--r-- | test/spec_request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_request.rb b/test/spec_request.rb index ac82228d..dc101cbf 100644 --- a/test/spec_request.rb +++ b/test/spec_request.rb @@ -508,9 +508,9 @@ describe Rack::Request do req2.params.should.equal({}) end - should "raise any errors on every request" do + should "pass through non-uri escaped cookies as-is" do req = Rack::Request.new Rack::MockRequest.env_for("", "HTTP_COOKIE" => "foo=%") - 2.times { proc { req.cookies }.should.raise(ArgumentError) } + req.cookies["foo"].should == "%" end should "parse cookies according to RFC 2109" do |