[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

webrick & cookies

Navindra Umanee

2/26/2005 6:06:00 AM

Wishlist item, I guess:

Wouldn't it have been nicer if Webrick stored cookies as a hash keyed
on the name of the cookie instead of as a plain array?

That is, it would have been cool if you could have done
response.cookies['name'] to get the value you're interested in.
Instead you have to traverse a list of cookies and/or convert it to a
hash first.

Looking at httprequest.rb, it wouldn't have been too much effort to
create a hash instead of an array:

@header['cookie'].each{|cookie|
@cookies += Cookie::parse(cookie)
}

Cheers,
Navin.



1 Answer

???????? ???????

12/22/2007 11:23:00 AM

0


"Genrih" <genrih@nest.ntu-kpi.kiev.ua> wrote in message
news:fkipk4$fcr$1@news.ntu-kpi.kiev.ua...
>
> "# cHa(c)ker #" <chacker@ethanol.ntu-kpi.kiev.ua> ???????/???????? ?
> ???????? ?????????: news:fkhies$467$1@news.ntu-kpi.kiev.ua...
>>? ???? ?? ??? ?? ? ????? ;)
>>
>> ????, ????? ??????????. ?????, ???? ? ?????? ? ????????? ???????????? ?
>> ??? ???? :)
>>
>> ftp://10.119... Fortress 2
>
>
> ?? ?????????? ???????((. ???????? ???-?????? ?? ????????, ??????????

????? ? ftp://gamebox/upload/TF2_Update_1.0.1.2.rar