diff --git a/rack-protection/spec/lib/rack/protection/xss_header_spec.rb b/rack-protection/spec/lib/rack/protection/xss_header_spec.rb index bd98eef6a..fbe4826a5 100644 --- a/rack-protection/spec/lib/rack/protection/xss_header_spec.rb +++ b/rack-protection/spec/lib/rack/protection/xss_header_spec.rb @@ -31,11 +31,11 @@ end it 'should set the X-Content-Type-Options' do - expect(get('/', {}, 'wants' => 'text/html').header['X-Content-Type-Options']).to eq('nosniff') + expect(get('/', {}, 'wants' => 'text/html').headers['X-Content-Type-Options']).to eq('nosniff') end it 'should set the X-Content-Type-Options for other content types' do - expect(get('/', {}, 'wants' => 'application/foo').header['X-Content-Type-Options']).to eq('nosniff') + expect(get('/', {}, 'wants' => 'application/foo').headers['X-Content-Type-Options']).to eq('nosniff') end it 'should allow changing the nosniff-mode off' do