dnsexit2: Pass an arrayref of headers for readability

This commit is contained in:
Richard Hansen 2024-07-24 19:14:22 -04:00
parent 1c94ed6063
commit 27143db56e

View file

@ -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'},