method

set_cookie

set_cookie(src, dst)
public

Net::HTTP is stupid about the multiple header fields. Here is workaround: