dnsexit2: Pass an arrayref of headers for readability
This commit is contained in:
parent
1c94ed6063
commit
27143db56e
1 changed files with 4 additions and 1 deletions
|
@ -4014,7 +4014,10 @@ sub dnsexit2_update_host {
|
|||
my $reply = geturl(
|
||||
proxy => opt('proxy'),
|
||||
url => $url,
|
||||
headers => "Content-Type: application/json\nAccept: application/json",
|
||||
headers => [
|
||||
'Content-Type: application/json',
|
||||
'Accept: application/json',
|
||||
],
|
||||
method => 'POST',
|
||||
data => encode_json({
|
||||
apikey => $config{$h}{'password'},
|
||||
|
|
Loading…
Reference in a new issue