godaddy: Combine URL lines to improve readability

Also drop unnecessary curly braces for consistency.
This commit is contained in:
Richard Hansen 2024-06-07 02:00:30 -04:00
parent 6e98c0cdb2
commit 4b2155a43c

View file

@ -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";