We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dacf804 commit 245dbe0Copy full SHA for 245dbe0
app/middlewares/rack/redirect.rb
@@ -12,6 +12,7 @@ def call env
12
13
# special case: non-ASCII paths
14
redirects = {
15
+ '/sitemap.xml' => '/sitemap.xml.gz',
16
'/search?utf8=✓&' => '/search',
17
'/tce/%uFEFF' => '/tce'
18
}
spec/requests/clean_paths_spec.rb
@@ -15,8 +15,8 @@
expect(response.header['Location']).to eq('/about/faq?test=true')
end
- it 'does not strip .xml extension from sitemap.xml' do
19
- get 'http://example.com/sitemap.xml'
+ it 'does not strip .xml extension from sitemap.xml.gz' do
+ get 'http://example.com/sitemap.xml.gz'
20
21
expect(response).to have_http_status(:ok)
22
expect(response.header['Location']).to be_nil
0 commit comments