HttpUtils.pm: revert accidental checkin 20799 => 20375

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20800 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
moises 2019-12-22 09:13:49 +00:00
parent 2b01fcb3c0
commit fb4b7d7d65

View File

@ -1,4 +1,4 @@
##############################################
##############################################
# $Id$
package main;
@ -650,7 +650,7 @@ HttpUtils_Connect2($)
HttpUtils_Close($hash);
return $hash->{callback}($hash, "write error: $err", undef)
}
$data = ($ret<=length($data))?substr($data,$ret):"";
$data = substr($data,$ret);
if(length($data) == 0) {
shutdown($hash->{conn}, 1) if($s);
delete($hash->{directWriteFn});