Skip to content

Commit b25b9e7

Browse files
committed
Msftidy
1 parent 1f2cab7 commit b25b9e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rex/proto/http/response.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def initialize(code = 200, message = 'OK', proto = DefaultProtocol)
6464
#
6565
def get_cookies
6666
cookies = ""
67-
if (self.headers.include?('Set-Cookie'))
68-
set_cookies = self.headers['Set-Cookie']
67+
if (self.headers.include?('Set-Cookie'))
68+
set_cookies = self.headers['Set-Cookie']
6969
key_vals = set_cookies.scan(/\s?([^, ;]+?)=(.*?);/)
7070
key_vals.each do |k, v|
7171
next if k == 'path'
@@ -74,7 +74,7 @@ def get_cookies
7474
end
7575
end
7676

77-
return cookies.strip
77+
return cookies.strip
7878
end
7979

8080
#

0 commit comments

Comments
 (0)