httpclient : allow to overwrite Content-Type with form data

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5326 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-06-07 07:49:39 +00:00
parent 3bf1336af7
commit 0cbda8f8c0

View File

@@ -596,7 +596,10 @@ class Httpclient
}
if ($this->method !== "GET" && ! empty ($this->formData))
{
$this->headersSent["Content-Type"] = "application/x-www-form-urlencoded";
var_dump ($this->headersSent);
if (! key_exists ("Content-Type", $this->headersSent))
$this->headersSent["Content-Type"] =
"application/x-www-form-urlencoded";
$len = 0;
foreach ($this->formData as $key => $val)
{