Stop putting a Content-Type into the request, if one is already present
This commit is contained in:
parent
0ca0d462ac
commit
8a4c93f592
1 changed files with 1 additions and 1 deletions
2
ddclient
2
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";
|
||||
|
|
Loading…
Reference in a new issue