diff options
author | James Tucker <jftucker@gmail.com> | 2012-03-17 12:50:59 -0700 |
---|---|---|
committer | James Tucker <raggi@google.com> | 2012-12-29 23:30:28 -0500 |
commit | 3623d04526b953a63bfb3e72de2d6920a042563f (patch) | |
tree | 637ff270774111e52196631577837eb6c774da31 /test/spec_response.rb | |
parent | 1fa9108657280d80486fb2b2653df6725f2c14b3 (diff) | |
download | rack-3623d04526b953a63bfb3e72de2d6920a042563f.tar.gz |
Correct some of the mime type issues. References #316 and #366.
HTTP 1.0 and 1.1 do not have MUST for Content-Type requirements, they have "should" (not SHOULD). They also have text describing how clients should handle this header being missing.
Diffstat (limited to 'test/spec_response.rb')
-rw-r--r-- | test/spec_response.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/spec_response.rb b/test/spec_response.rb index 0719cd36..afc2528f 100644 --- a/test/spec_response.rb +++ b/test/spec_response.rb @@ -6,7 +6,7 @@ describe Rack::Response do response = Rack::Response.new status, header, body = response.finish status.should.equal 200 - header.should.equal "Content-Type" => "text/html" + header.should.equal({}) body.each { |part| part.should.equal "" } @@ -14,7 +14,7 @@ describe Rack::Response do response = Rack::Response.new status, header, body = *response status.should.equal 200 - header.should.equal "Content-Type" => "text/html" + header.should.equal({}) body.each { |part| part.should.equal "" } @@ -37,7 +37,7 @@ describe Rack::Response do it "can set and read headers" do response = Rack::Response.new - response["Content-Type"].should.equal "text/html" + response["Content-Type"].should.equal nil response["Content-Type"] = "text/plain" response["Content-Type"].should.equal "text/plain" end |