Module: Net::HTTPHeader
- Defined in:
- lib/net/http.rb
Overview
Unfortunaetely Anemone doesn’t support HTTP authentication
so we
need to get to the core and override
Net::HTTPHeader.initialize_http_header( )
May not be such a bad thing after all since it’ll apply
to the
whole system but it feels kinda dirty.
@author: Anastasios “Zapotek” Laskos
<tasos.laskos@gmail.com> <zapotek@segfault.gr>
@version: 0.1-pre
Instance Method Summary (collapse)
- - (Object) initialize_http_header(initheader) (also: #old_initialize_http_header)
Instance Method Details
- (Object) initialize_http_header(initheader) Also known as: old_initialize_http_header
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/net/http.rb', line 31 def initialize_http_header( initheader ) old_initialize_http_header( initheader ) begin url = Arachni::Options.instance.url # this is our little modification basic_auth( url.user, url.password ) end end |