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 0abcddc22a
commit 8ff3a14d2e

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);