Exception: CMSScanner::HTTPRedirectError
- Defined in:
- lib/cms_scanner/errors/http.rb
Overview
HTTP Redirect Error
Instance Attribute Summary collapse
-
#redirect_uri ⇒ Object
readonly
Returns the value of attribute redirect_uri.
Instance Method Summary collapse
-
#initialize(url) ⇒ HTTPRedirectError
constructor
A new instance of HTTPRedirectError.
- #to_s ⇒ Object
Constructor Details
#initialize(url) ⇒ HTTPRedirectError
Returns a new instance of HTTPRedirectError.
51 52 53 |
# File 'lib/cms_scanner/errors/http.rb', line 51 def initialize(url) @redirect_uri = Addressable::URI.parse(url).normalize end |
Instance Attribute Details
#redirect_uri ⇒ Object (readonly)
Returns the value of attribute redirect_uri.
48 49 50 |
# File 'lib/cms_scanner/errors/http.rb', line 48 def redirect_uri @redirect_uri end |
Instance Method Details
#to_s ⇒ Object
55 56 57 58 |
# File 'lib/cms_scanner/errors/http.rb', line 55 def to_s "The URL supplied redirects to #{redirect_uri}. Use the --ignore-main-redirect "\ 'option to ignore the redirection and scan the target.' end |