[Jifty-commit] r3207 - jifty/trunk/lib/Jifty/View/Mason
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon May 7 11:33:50 EDT 2007
Author: ruz
Date: Mon May 7 11:33:48 2007
New Revision: 3207
Modified:
jifty/trunk/lib/Jifty/View/Mason/Handler.pm
Log:
* indent, minor
Modified: jifty/trunk/lib/Jifty/View/Mason/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Mason/Handler.pm (original)
+++ jifty/trunk/lib/Jifty/View/Mason/Handler.pm Mon May 7 11:33:48 2007
@@ -131,17 +131,18 @@
$r->content_type || $r->content_type('text/html; charset=utf-8'); # Set up a default
- if ($r->content_type =~ /charset=([\w-]+)$/ ) {
- my $enc = $1;
- if (lc($enc) =~ /utf-?8/) {
+ if ( my ($enc) = $r->content_type =~ /charset=([\w-]+)$/ ) {
+ if ( lc($enc) =~ /utf-?8/ ) {
binmode *STDOUT, ":utf8";
- }
- else {
+ }
+ else {
binmode *STDOUT, ":encoding($enc)";
- }
+ }
+ } else {
+ binmode *STDOUT;
}
- unless ($r->http_header_sent or not $m->auto_send_headers) {
+ unless ( $r->http_header_sent or not $m->auto_send_headers ) {
$r->send_http_header();
}
More information about the Jifty-commit
mailing list