mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
Fix CliResetSessionTest by allowing empty POST fields to be defined in the curl options
This commit is contained in:
@@ -676,7 +676,7 @@ abstract class ItopTestCase extends KernelTestCase
|
||||
curl_setopt_array($ch, $aCurlOptions);
|
||||
if ($this->IsArrayOfArray($aPostFields)) {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($aPostFields));
|
||||
} elseif (!empty($aPostFields)) {
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $aPostFields);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user