[dancer-users] Major Dancer 2 release: 0.140000

Russell Jenkins russell.jenkins at strategicdata.com.au
Thu May 1 03:25:51 BST 2014

On 1/05/2014 6:23 am, Cymon wrote:
> We haven't touched the session code, but this might be fallout from 
> the transition to the new ConfigReader role, which effectively 
> decoupled local configurations from global ones. It caches the objects 
> (exactly as before - in fact, almost everything is literally the same 
> code) so I don't see how this would be a problem. Either way, I'd like 
> to get this resolved ASAP. Probably I found... In 
> Dancer2::Core::Request cookies are generated from cookie header in 
> this foreach foreach my $cookie ( $self->header('COOKIE') ) but 
> $self->header('COOKIE') is just a string, not something useful for 
> iterating... Adding a split seems to do the trick... foreach my 
> $cookie ( split " ", $self->header('COOKIE') ) {
>> In the future, we will be sure to first release a development version. 
> No problem, i'll be an early adopter in any case :-P
There was a small change to how requests generate cookie objects to 
improve adding cookie headers when using Dancer2::Test (please use 
Plack::Test instead!).

Looks like this was my fault; misread the HTTP::Headers docs and 
erroneously removed the split that was there previously. Sorry! There is 
a Pr with a fix for this (#580).


More information about the dancer-users mailing list