mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 16:44:04 -05:00
Use response_vary_headers
method in requests/cache_spec (#29411)
This commit is contained in:
parent
1540f42522
commit
8156113d58
@ -184,7 +184,7 @@ describe 'Caching behavior' do
|
|||||||
get '/users/alice'
|
get '/users/alice'
|
||||||
|
|
||||||
expect(response).to redirect_to('/@alice')
|
expect(response).to redirect_to('/@alice')
|
||||||
expect(response.headers['Vary']&.split(',')&.map { |x| x.strip.downcase }).to include('accept')
|
expect(response_vary_headers).to include('accept')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user