Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Require CGI

  • Loading branch information...
commit 4c9e8deaf8471dedd49b306300b65da7b66d7891 1 parent 63dbd7b
@kjvarga authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/sitemap_generator/link_set.rb
View
7 lib/sitemap_generator/link_set.rb
@@ -227,12 +227,13 @@ def group(opts={}, &block)
#
# SitemapGenerator::Sitemap.ping_search_engines('http://example.com/sitemap_index.xml.gz', :super_engine => 'http://superengine.com/ping?url=%s')
def ping_search_engines(*args)
- engines = args.last.is_a?(Hash) ? args.pop : {}
- index_url = CGI.escape(args.shift || sitemap_index_url)
-
+ require 'cgi/session'
require 'open-uri'
require 'timeout'
+ engines = args.last.is_a?(Hash) ? args.pop : {}
+ index_url = CGI.escape(args.shift || sitemap_index_url)
+
puts "\n" if verbose
search_engines.merge(engines).each do |engine, link|
link = link % index_url
Please sign in to comment.
Something went wrong with that request. Please try again.