Skip to content

Commit

Permalink
fix a bug I introduced, but also another bug
Browse files Browse the repository at this point in the history
  • Loading branch information
konklone committed Dec 3, 2014
1 parent 5ae316a commit 5630c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/site-inspector/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def xss_protection?

def secure_cookies?
return nil if !response || !has_cookies?
cookie = header_from(response, "Set-Cookie")
cookie = header_from("Set-Cookie")
cookie = cookie.first if cookie.is_a?(Array)
marked_secure = !!(cookie.downcase =~ /secure/)
marked_http_only = !!(cookie.downcase =~ /HttpOnly/)
marked_http_only = !!(cookie.downcase =~ /httponly/)
marked_secure and marked_http_only
end

Expand Down

0 comments on commit 5630c3a

Please sign in to comment.