plugins/proxy.rb in arachni-0.4.0.2 vs plugins/proxy.rb in arachni-0.4.0.3
- old
+ new
@@ -83,10 +83,10 @@
res.header.delete( 'content-encoding' )
res.body = Zlib::GzipReader.new( StringIO.new( res.body ) ).read
end
headers = {}
- headers.merge( res.header.dup ) if res.header
+ headers.merge!( res.header.dup ) if res.header
headers['set-cookie'] = res.cookies if !res.cookies.empty?
# proper initialization in order to parse the response into a page
@parser = Arachni::Parser.new( @framework.opts,
Typhoeus::Response.new(