Skip to content

Commit

Permalink
update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Feb 6, 2015
1 parent ef67f82 commit 9902079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/site-inspector/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def secure_cookies?
return nil if !has_cookies?
cookie = headers["set-cookie"]
cookie = cookie.first if cookie.is_a?(Array)
!!(cookie =~ /; (secure|httponly)/i)
!!(cookie =~ /(; secure.*; httponly|; httponly.*; secure)/i)
end

# Returns an array of hashes of downcased key/value header pairs (or nil)
Expand Down

0 comments on commit 9902079

Please sign in to comment.