projects
/
maypole.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc4bc6a
)
Only set content type for text/*
author
Marcus Ramberg
<mramberg@cpan.org>
Tue, 26 Oct 2004 10:59:33 +0000
(10:59 +0000)
committer
Marcus Ramberg
<mramberg@cpan.org>
Tue, 26 Oct 2004 10:59:33 +0000
(10:59 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@270
48953598
-375a-da11-a14b-
00016c27c3ee
lib/Apache/MVC.pm
patch
|
blob
|
history
diff --git
a/lib/Apache/MVC.pm
b/lib/Apache/MVC.pm
index 7c016ebc82060866b54466985f9ffc1242979f0e..ec701d0edd14dcdd6c73604fc843d03808548f77 100644
(file)
--- a/
lib/Apache/MVC.pm
+++ b/
lib/Apache/MVC.pm
@@
-43,7
+43,9
@@
sub parse_args {
sub send_output {
my $r = shift;
$r->{ar}->content_type(
- $r->{content_type} . "; charset=" . $r->{document_encoding} );
+ $r->{content_type} =~ m/^text/ ?
+ $r->{content_type} . "; charset=" . $r->{document_encoding} :
+ $r->{content_type} );
$r->{ar}->headers_out->set( "Content-Length" => length $r->{output} );
APACHE2 || $r->{ar}->send_http_header;
$r->{ar}->print( $r->{output} );