2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

HttpUtils: return raw-data/avoid error-messages when the answer is not HTTP

git-svn-id: https://svn.fhem.de/fhem/trunk@4601 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-01-10 10:57:58 +00:00
parent 9583d34e6a
commit 67e8a00b9d

View File

@ -224,6 +224,8 @@ HttpUtils_ParseAnswer($$)
}
$ret=~ s/(.*?)\r\n\r\n//s; # Not greedy: switch off the header.
return ("", $ret) if(!defined($1));
my @header= split("\r\n", $1);
my @header0= split(" ", shift @header);
my $code= $header0[1];