Ticket #7 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

Error when setting a cookie via a Symbol to something other than a String

Reported by: deveiant Owned by: deveiant
Priority: normal Milestone: Theres No Step Three
Component: Dispatcher Version: 0.2
Severity: normal Keywords: cookieset setter
Cc:

Description

When setting a cookie via code like:

txn.cookies[:wof] = Digest::MD5.hexdigest( Time.now.to_s )

an error is thrown:

ArgumentError

cannot set a cookie named 'wof' with a key of 'wof'

lib/arrow/cookieset.rb:93:in `[]='

Change History

Changed 21 months ago by deveiant

  • status changed from new to closed
  • resolution set to fixed

(In [384]) source:trunk/spec/cookieset_spec.rb source:trunk/lib/arrow/cookieset.rb

  • Test and fix for the cookieset bug when setting a non-String cookie via a symbol (fixes #7)
Note: See TracTickets for help on using tickets.