sitemap_checker 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sitemap_checker/path.rb +1 -1
- data/lib/sitemap_checker/version.rb +1 -1
- metadata +1 -1
data/lib/sitemap_checker/path.rb
CHANGED
@@ -13,7 +13,7 @@ module SitemapChecker
|
|
13
13
|
|
14
14
|
def status
|
15
15
|
begin
|
16
|
-
|
16
|
+
open(@url, "Accept" => @url[/\.xml$/] ? 'application/xml' : 'text/html').status[0]
|
17
17
|
rescue RuntimeError => e
|
18
18
|
e
|
19
19
|
rescue OpenURI::HTTPError => e
|