From 073fe5a51d76faa341c6854e1c9097419bd019ef Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 24 Jul 2024 18:45:16 -0400 Subject: [PATCH] dnsexit2: Delete redundant HTTP status code check `header_ok` already checks for non-2xx codes. --- ddclient.in | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ddclient.in b/ddclient.in index 27b9331..9c74b69 100755 --- a/ddclient.in +++ b/ddclient.in @@ -4026,14 +4026,6 @@ sub dnsexit2_update_host { failed("updating %s: Could not connect to %s", $h, $url); return; }; - (my $http_status) = ($reply =~ m%^s*HTTP/.*\s+(\d+)%i); - debug("HTTP response code: %s", $http_status); - if ($http_status ne '200') { - failed("Failed to update Host\n%s", $h); - failed("HTTP response code\n%s", $http_status); - failed("Full reply\n%s", $reply) unless opt('verbose'); - return; - } (my $body = $reply) =~ s/^.*?\r?\n\r?\n//s; my $response = eval { decode_json($body); }; if (!$response) {