godaddy: Combine URL lines to improve readability
Also drop unnecessary curly braces for consistency.
This commit is contained in:
parent
6e98c0cdb2
commit
4b2155a43c
1 changed files with 1 additions and 2 deletions
|
@ -5750,8 +5750,7 @@ sub nic_godaddy_update {
|
||||||
name => $hostname,
|
name => $hostname,
|
||||||
type => $rrset_type,
|
type => $rrset_type,
|
||||||
}]);
|
}]);
|
||||||
my $url = "https://$config{$h}{'server'}";
|
my $url = "https://$config{$h}{'server'}/$zone/records/$rrset_type/$hostname";
|
||||||
$url .= "/${zone}/records/${rrset_type}/${hostname}";
|
|
||||||
my $header = "Content-Type: application/json\n";
|
my $header = "Content-Type: application/json\n";
|
||||||
$header .= "Accept: application/json\n";
|
$header .= "Accept: application/json\n";
|
||||||
$header .= "Authorization: sso-key $config{$h}{'login'}:$config{$h}{'password'}\n";
|
$header .= "Authorization: sso-key $config{$h}{'login'}:$config{$h}{'password'}\n";
|
||||||
|
|
Loading…
Reference in a new issue