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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user