Permalink
Browse files

Capitalize the T in the ETag header, add a test for it.

  • Loading branch information...
1 parent 8455a3b commit 939faefede6392918a34037a347666ce9678ca4d @evaryont evaryont committed with cloudhead Mar 17, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/toto.rb
  2. +1 −0 test/toto_test.rb
View
@@ -340,7 +340,7 @@ def call env
"no-cache, must-revalidate"
end
- @response['Etag'] = Digest::SHA1.hexdigest(response[:body])
+ @response['ETag'] = Digest::SHA1.hexdigest(response[:body])
@response.status = response[:status]
@response.finish
View
@@ -42,6 +42,7 @@
asserts("content type is set properly") { topic.content_type }.equals "text/html"
should("include a couple of article") { topic.body }.includes_elements("#articles li", 3)
should("include an archive") { topic.body }.includes_elements("#archives li", 2)
+ asserts("Etag header present") { topic.headers["Etag"] }
end
end

0 comments on commit 939faef

Please sign in to comment.