[dancer-users] D1 => D2 request->referer in LIST context has changed
Gabor Szabo
gabor at szabgab.com
Wed Dec 10 19:34:49 GMT 2014
If there is *no* referrer then
@z = request->referer; used to return an 'undef'
Now it returns and empty list.
This blew up in my code that had
%h = (
ref => request->referer,
....
);
so I'll have to replace that code with
%h = (
ref => scalar request->referer,
....
);
or with
%h = (
ref => ( request->referer // ''),
....
);
I understand that the D2 behaves "more correctly" than D1 did, but I'd like
to verify.
Is this change is also intentional? Could you point out where else has this
change happened?
regards
Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20141210/1e8308b5/attachment-0001.html>
More information about the dancer-users
mailing list