From b60c1fe97be3af8baf982aaa4638811a37f7a7e9 Mon Sep 17 00:00:00 2001 From: Kohei Suzuki Date: Thu, 12 Mar 2015 23:14:01 +0900 Subject: Also skip Content-Encoding and Vary header if 304 --- actionpack/test/dispatch/static_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/dispatch/static_test.rb b/actionpack/test/dispatch/static_test.rb index 9164cbd3aa..288a2084f6 100644 --- a/actionpack/test/dispatch/static_test.rb +++ b/actionpack/test/dispatch/static_test.rb @@ -149,7 +149,8 @@ module StaticTests response = get(file_name, 'HTTP_ACCEPT_ENCODING' => 'gzip', 'HTTP_IF_MODIFIED_SINCE' => last_modified.httpdate) assert_equal 304, response.status assert_equal nil, response.headers['Content-Type'] - assert_equal 'gzip', response.headers['Content-Encoding'] + assert_equal nil, response.headers['Content-Encoding'] + assert_equal nil, response.headers['Vary'] end # Windows doesn't allow \ / : * ? " < > | in filenames -- cgit v1.2.3