2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 12:46:03 +00:00

HttpUtils.pm: log explanation for non utf-8 data/header Problem (Forum #131207)

git-svn-id: https://svn.fhem.de/fhem/trunk@27022 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-01-11 07:51:42 +00:00
parent b91899c877
commit b484a70a9f

View File

@ -749,6 +749,10 @@ HttpUtils_Connect2($)
HttpUtils_Close($hash);
return $hash->{callback}($hash, "write error: $err", undef)
}
Log 1, "Encoding problem in data/header (not UTF-8), check Forum #131207"
if(length($data) < $ret);
$data = substr($data,$ret);
if(length($data) == 0) {
shutdown($hash->{conn}, 1) if($s);