porkbun: Check for JSON object, not just non-null
This commit is contained in:
parent
536c7c87a2
commit
fc453a0de3
1 changed files with 1 additions and 1 deletions
|
@ -6810,7 +6810,7 @@ sub nic_porkbun_update {
|
|||
(my $body = $reply) =~ s/^.*?\n\n//s;
|
||||
$body =~ qr/{(?:[^{}]*|(?R))*}/mp;
|
||||
my $response = eval { decode_json(${^MATCH}) };
|
||||
if (!defined($response)) {
|
||||
if (ref($response) ne 'HASH') {
|
||||
failed("$h: unexpected service response: $body");
|
||||
next;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue