freemyip: Skip headers before processing response

This isn't strictly necessary but improves readability and
consistency.
This commit is contained in:
Richard Hansen 2024-07-21 20:51:10 -04:00
parent a252ff5ebe
commit 3ece2017e9

View file

@ -6424,7 +6424,8 @@ sub nic_freemyip_update {
next; next;
} }
next if !header_ok($h, $reply); next if !header_ok($h, $reply);
my @reply = split /\n/, $reply; (my $body = $reply) =~ s/^.*?\n\n//s;
my @reply = split(/\n/, $body);
my $returned = pop(@reply); my $returned = pop(@reply);
if ($returned !~ /OK/) { if ($returned !~ /OK/) {
failed("$h: Server said: $returned"); failed("$h: Server said: $returned");