From: John Napiorkowski Date: Fri, 29 May 2015 16:59:26 +0000 (-0500) Subject: up version for release, added docs X-Git-Tag: 5.90094~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=80ba671f681862620befead95d299c8dfc91cbaf up version for release, added docs --- diff --git a/Changes b/Changes index adf5d1b..d842512 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ # This file documents the revision history for Perl extension Catalyst. +5.90093 - 2015-05-29 + - Fixed a bug where if you used $res->write and then $res->body, the + contents of body would be double encoded (gshank++). + 5.90092 - 2015-05-19 - Allows you to use a namespace suffix for request, response and stats class traits. Docs and tests for this. diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 59f6167..0148bd2 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -180,7 +180,7 @@ sub composed_stats_class { __PACKAGE__->_encode_check(Encode::FB_CROAK | Encode::LEAVE_SRC); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.90092'; +our $VERSION = '5.90093'; $VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases sub import { diff --git a/lib/Catalyst/Runtime.pm b/lib/Catalyst/Runtime.pm index 7187a39..8332312 100644 --- a/lib/Catalyst/Runtime.pm +++ b/lib/Catalyst/Runtime.pm @@ -7,7 +7,7 @@ BEGIN { require 5.008003; } # Remember to update this in Catalyst as well! -our $VERSION = '5.90092'; +our $VERSION = '5.90093'; $VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases =head1 NAME diff --git a/lib/Catalyst/UTF8.pod b/lib/Catalyst/UTF8.pod index eefb181..0f20099 100644 --- a/lib/Catalyst/UTF8.pod +++ b/lib/Catalyst/UTF8.pod @@ -462,6 +462,11 @@ B If you try to change the encoding after you start the stream, this will response. However since you've already started streaming this will not show up as an HTTP error status code, but rather error information in your body response and an error in your logs. +B If you use ->body AFTER using ->write (for example you may do this to write your HTML +HEAD information as fast as possible) we expect the contents to body to be encoded as it +normally would be if you never called ->write. In general unless you are doing weird custom +stuff with encoding this is likely to just already do the correct thing. + The second way to stream a response is to get the response writer object and invoke methods on that directly: