When from_psgi_response, a bug when headers are already output and charset is set...
authorTomohiro Hosaka <bokutin@bokut.in>
Wed, 2 Jan 2019 09:43:55 +0000 (18:43 +0900)
committerTomohiro Hosaka <bokutin@bokut.in>
Wed, 2 Jan 2019 09:43:55 +0000 (18:43 +0900)
commitcc7738c0fb5c4b5dc601734e7b525391d81d6639
tree46a66b340a4f70a829b1356a819ac7a624260bc8
parentfddc541da120ac66bc0eb75c9845eafbe0ff0707
When from_psgi_response, a bug when headers are already output and charset is set has been fixed.

[error] Caught exception in MyApp::Controller::Docs->stream_and_charset "You may not change the encoding once the headers are finalized at /usr/home/bokutin/code/reading/catalyst-runtime/lib/Catalyst/Response.pm line 202."
[warn] Useless setting a header value after finalize_headers and the response callback has been called. Since we don't support tail headers this will not work as you might expect.
lib/Catalyst/Response.pm
t/psgi_utils.t