From 9ba583175a5213f0fb2ff9ee75b3ca24f6b4aeae Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 25 Jun 2024 22:23:27 -0400 Subject: [PATCH] infomaniak: Fail if the HTTP status code is not 2xx --- ddclient.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ddclient.in b/ddclient.in index 877d8a3..7142ff9 100755 --- a/ddclient.in +++ b/ddclient.in @@ -8019,10 +8019,7 @@ sub nic_infomaniak_update { login => $config{$h}{'login'}, password => $config{$h}{'password'}, ); - if (!$reply) { - failed("could not update %s", $h); - next; - } + next if !header_ok($h, $reply); (my $body = $reply) =~ s/^.*?\n\n//s; my ($status) = split(/ /, $body, 2); my ($ok, $msg) =