From 27143db56ee7518a9ce7a0d2ccc974112add191e Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 24 Jul 2024 19:14:22 -0400 Subject: [PATCH] dnsexit2: Pass an arrayref of headers for readability --- ddclient.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index a5de3c1..435f47a 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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'},