Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix content charset for static files

  • Loading branch information...
commit 94eeed4e7b70c834d52d7c673da78ce26f7d823d 1 parent f6d3c2d
Timon Timosha authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Connection/Wait.pm
4 Connection/Wait.pm
View
@@ -52,13 +52,13 @@ sub onread {
# Check if we have special marker: IFRAME.
if ($pairs->[0][1] eq $CONFIG{IFRAME_ID}) {
$self->debug("IFRAME marker received, sending content");
- Realplexor::Common::send_static($self->fh, 'IFRAME', 'text/html');
+ Realplexor::Common::send_static($self->fh, 'IFRAME', "text/html; charset=$CONFIG{CHARSET}");
return;
}
# Check if we have special marker: SCRIPT.
if ($pairs->[0][1] eq $CONFIG{SCRIPT_ID}) {
$self->debug("SCRIPT marker received, sending content");
- Realplexor::Common::send_static($self->fh, 'SCRIPT', 'text/javascript');
+ Realplexor::Common::send_static($self->fh, 'SCRIPT', "text/javascript; charset=$CONFIG{CHARSET}");
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.