unstable
Meatballs 2013-04-26 20:30:04 +01:00
parent 1f2cab7aef
commit b25b9e769c
1 changed files with 3 additions and 3 deletions

View File

@ -64,8 +64,8 @@ class Response < Packet
#
def get_cookies
cookies = ""
if (self.headers.include?('Set-Cookie'))
set_cookies = self.headers['Set-Cookie']
if (self.headers.include?('Set-Cookie'))
set_cookies = self.headers['Set-Cookie']
key_vals = set_cookies.scan(/\s?([^, ;]+?)=(.*?);/)
key_vals.each do |k, v|
next if k == 'path'
@ -74,7 +74,7 @@ class Response < Packet
end
end
return cookies.strip
return cookies.strip
end
#