server.rb
# convert cookies into the session hash
convert cookies into the session hash
convert cookies into the session hash
def add_cookies(headers)
    cookies = headers[:cookie]
    cookies_hash = Hash.new
    return false unless cookies
    cookies.split('&').each do |string|
      k,v = string.split('=')
      cookies_hash[convert_key(k)] = v
    end
    @params[:cookie] = cookies_hash
  end
def add_cookies ( headers ) cookies = headers [ :cookie ] cookies_hash = Hash . new return false unless cookies cookies . split ( '&' ) . each do | string | k , v = string . split ( '=' ) cookies_hash [ convert_key ( k ) ] = v end @params [ :cookie ] = cookies_hash end
convert cookies into the session hash
convert cookies into the session hash
headers
<not_specific>