From 4b2155a43c88c1953b2eb2f7b200e308885e6d52 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 7 Jun 2024 02:00:30 -0400 Subject: [PATCH] godaddy: Combine URL lines to improve readability Also drop unnecessary curly braces for consistency. --- ddclient.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index 087e6c2..a9e3004 100755 --- a/ddclient.in +++ b/ddclient.in @@ -5750,8 +5750,7 @@ sub nic_godaddy_update { name => $hostname, type => $rrset_type, }]); - my $url = "https://$config{$h}{'server'}"; - $url .= "/${zone}/records/${rrset_type}/${hostname}"; + my $url = "https://$config{$h}{'server'}/$zone/records/$rrset_type/$hostname"; my $header = "Content-Type: application/json\n"; $header .= "Accept: application/json\n"; $header .= "Authorization: sso-key $config{$h}{'login'}:$config{$h}{'password'}\n";