01_FHEMWEB.pm: wide charachter check, Forum #29939

git-svn-id: https://svn.fhem.de/fhem/trunk@8277 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-03-23 10:08:00 +00:00
parent 438f3130e1
commit 0dc2a197a2

View File

@@ -435,8 +435,12 @@ FW_Read($)
($FW_httpheader{"Accept-Encoding"} &&
$FW_httpheader{"Accept-Encoding"} =~ m/gzip/) &&
$FW_use_zlib) {
$FW_RET = Compress::Zlib::memGzip($FW_RET);
$compressed = "Content-Encoding: gzip\r\n";
eval { $FW_RET = Compress::Zlib::memGzip($FW_RET); };
if($@) {
Log 1, "memGzip: $@"; $FW_RET=""; #Forum #29939
} else {
$compressed = "Content-Encoding: gzip\r\n";
}
}
my $length = length($FW_RET);