From 8a4c93f59270ce890914ba775771b64aa984e104 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Thu, 29 Aug 2019 09:38:10 -0500 Subject: [PATCH] Stop putting a Content-Type into the request, if one is already present --- ddclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddclient b/ddclient index 2ebbc95..3df4aff 100755 --- a/ddclient +++ b/ddclient @@ -2034,7 +2034,7 @@ sub geturl { $request .= "Authorization: Basic $auth\n" if $login || $password; $request .= "User-Agent: ${program}/${version}\n"; if ($data) { - $request .= "Content-Type: application/x-www-form-urlencoded\n"; + $request .= "Content-Type: application/x-www-form-urlencoded\n" if ! $headers =~ /^Content-Type: /; $request .= "Content-Length: " . length($data) . "\n"; } $request .= "Connection: close\n";