Commit 8100ea22 authored by justdave%bugzilla.org's avatar justdave%bugzilla.org

Bug 265731: multipart_start in the server-push handling code wasn't honoring the…

Bug 265731: multipart_start in the server-push handling code wasn't honoring the $cgi->charset setting. r=myk, a=justdave
parent c43a96bb
......@@ -153,7 +153,10 @@ sub multipart_start {
my(@header);
my($self,@p) = @_;
my($type,@other) = rearrange([['TYPE','CONTENT_TYPE','CONTENT-TYPE']],@p);
my $charset = $self->charset;
$type = $type || 'text/html';
$type .= "; charset=$charset" if $type ne '' and $type =~ m!^text/! and $type !~ /\bcharset\b/ and $charset ne '';
push(@header,"Content-Type: $type");
# Add the cookies in if we have any
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment