Skip to content

Commit

Permalink
Travis complaint: access to headers['set-cookie']
Browse files Browse the repository at this point in the history
Assuming that res.get_cookies is analagous, quick scan of the
method indicates it generates a similar string to the original
content in the headers.
  • Loading branch information
RageLtMan committed Oct 29, 2018
1 parent 5b92be2 commit b3e21b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/auxiliary/server/http_proxy.rb
Expand Up @@ -96,8 +96,8 @@ def log_response(cli,res)
info[:ctype] = res.headers['content-type']
end

if res.headers['set-cookie']
info[:cookie] = res.headers['set-cookie']
if res.get_cookies and not res.get_cookies.empty?
info[:cookie] = res.get_cookies
end

if res.headers['authorization']
Expand Down

0 comments on commit b3e21b2

Please sign in to comment.