Sha256: 2d104f91c295e126d115732038fc5ce9eb385ff410b9328c421ec1f4e92be9e6

Contents?: true

Size: 323 Bytes

Versions: 15

Compression:

Stored size: 323 Bytes

Contents

class RefreshWithoutUrl < WEBrick::HTTPServlet::AbstractServlet
  @@count = 0
  def do_GET(req, res)
    address = "#{req.host}:#{req.port}"
    res['Content-Type'] = "text/html"
    @@count += 1
    if @@count > 1
      res['Refresh'] = "0; url=http://#{address}/";
    else
      res['Refresh'] = "0";
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
mechanize-2.7.7 lib/mechanize/test_case/refresh_without_url.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/refresh_without_url.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/refresh_without_url.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/refresh_without_url.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.7.6 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.7.5 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.7.4 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.7.3 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.7.2 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.7.1 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.7.0 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.6.0 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.5.1 lib/mechanize/test_case/refresh_without_url.rb
mechanize-2.5 lib/mechanize/test_case/refresh_without_url.rb