class CMSScanner::Error::HTTPRedirect
HTTP Redirect Error
Attributes
Public Class Methods
Source
# File lib/cms_scanner/errors/http.rb, line 61 def initialize(url) @redirect_uri = Addressable::URI.parse(url).normalize end
@param [ String ] url
Public Instance Methods
Source
# File lib/cms_scanner/errors/http.rb, line 65 def to_s "The URL supplied redirects to #{redirect_uri}. Use the --ignore-main-redirect " \ 'option to ignore the redirection and scan the target, or change the --url option ' \ 'value to the redirected URL.' end