FIX: add 'noindex' header to rss feed responses.

This commit is contained in:
Vinoth Kannan
2020-01-24 09:30:27 +05:30
parent 45b37a8bd1
commit b6765aac4b
3 changed files with 12 additions and 2 deletions

View File

@@ -300,6 +300,7 @@ RSpec.describe ListController do
get "/latest.rss"
expect(response.status).to eq(200)
expect(response.media_type).to eq('application/rss+xml')
expect(response.headers['X-Robots-Tag']).to eq('noindex')
end
it 'renders links correctly with subfolder' do