# File lib/mongrel/cgi.rb, line 98
 98:     def send_cookies(to)
 99:       # convert the cookies based on the myriad of possible ways to set a cookie
100:       if @head['cookie']
101:         cookie = @head['cookie']
102:         case cookie
103:         when Array
104:           cookie.each {|c| to['Set-Cookie'] = c.to_s }
105:         when Hash
106:           cookie.each_value {|c| to['Set-Cookie'] = c.to_s}
107:         else
108:           to['Set-Cookie'] = options['cookie'].to_s
109:         end
110:         
111:         @head.delete('cookie')
112: 
113:         # @output_cookies seems to never be used, but we'll process it just in case
114:         @output_cookies.each {|c| to['Set-Cookie'] = c.to_s } if @output_cookies
115:       end
116:     end