Subject: | Tests break on 5.90006x |
the t/02subreq.t test breaks on 5.90006x.
I am not sure exactly why, but the change in catalyst that breaks it deals with changes in body handling (https://github.com/perl-catalyst/catalyst-runtime/commit/46fff667a1229a59422010500311e48a6f9da824)
https://metacpan.org/source/EDENC/Catalyst-Plugin-SubRequest-0.20/lib/Catalyst/Plugin/SubRequest.pm#L112
If $writer->body is changed to $i_ctx->res->body, all the tests pass again. I don't understand all the mechanics, so this might not be the right fix. I have tested all Catalyt 5.9x versions, and it works back to 5.90008. Before that it breaks on request->env not existing.
The response_cb is called, so $writer is returned to somewhere, but the write method is newer called as far as I can tell, so the $writer->body remains empty.
This might be a regression in Catalyst itself, I am not sure.