mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
30_HUEBridge.pm: bug fix, see https://forum.fhem.de/index.php/topic,11020.msg1004520.html#msg1004520
git-svn-id: https://svn.fhem.de/fhem/trunk@20812 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
76df586119
commit
c0d7aa32d5
@ -1715,8 +1715,8 @@ HUEBridge_HTTP_Call($$$;$)
|
|||||||
} elsif($ret eq '') {
|
} elsif($ret eq '') {
|
||||||
return undef;
|
return undef;
|
||||||
} elsif($ret =~ /^error:(\d){3}$/) {
|
} elsif($ret =~ /^error:(\d){3}$/) {
|
||||||
my %result = { error => "HTTP Error Code $1" };
|
my $result = { error => "HTTP Error Code $1" };
|
||||||
return \%result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !$ret ) {
|
if( !$ret ) {
|
||||||
@ -2062,8 +2062,8 @@ HUEBridge_HTTP_Request($$$@)
|
|||||||
}
|
}
|
||||||
undef $conn;
|
undef $conn;
|
||||||
if($header[0] =~ /^[^ ]+ ([\d]{3})/ && $1 != 200) {
|
if($header[0] =~ /^[^ ]+ ([\d]{3})/ && $1 != 200) {
|
||||||
my %result = { error => "error: $1" };
|
my $result = { error => "error: $1" };
|
||||||
return \%result;
|
return $result;
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user