Conversation
|
👍 Chance for test? :) |
|
Will try for the first change, at least. Still searching for the current file to add the test in. |
|
This is within an |
|
If you think it can take some time, please merge my PR first for a release, and then fix it correctly later. This is making some plugins to fail (like Dancer2::Plugin::Database). Merry Christmas (after two days, but better later then never) |
|
And merry Christmas to you @ambs 😄 Git blame indicates that it is the work on allowing before serializer hooks ( #1053 ) that changed the behaviour here (see commit 5697359). My suggestion above almost undoes the changes in the around modifier in that commit, and the test failures I'm seeing were changes as a result of that commit. Looks like I need to write some more test cases first... (ping @mickeyn for thoughts) |
|
Yeah, my commit didn't take the "0" case into account - so it's good to check the length (we can also check the content-length header to make sure we don't read content unless it's positive. BTW, I have a local commit waiting to become PR that removes the 'around content' and makes it a nice 'ro' attribute with a writer (cause f*#!@ 'around's). |
|
@mickeyn did you have any tests for what the changes from #1053 allow ? |
|
👍 everyone. :) |
|
The hooks tests were updated to comply with the change (which basically covers the 'always called' behavior). Do you think we're missing coverage there? |
|
@mickeyn yes: tests for an app with a The changes to the See https://github.com/PerlDancer/Dancer2/blob/master/lib/Dancer2/Core/Response.pm#L183 |
|
Closing this now that #1082 has been merged. |
Fixes #1079