diff --git a/library/Class/WebService/SIGB/Decalog/Service.php b/library/Class/WebService/SIGB/Decalog/Service.php index ec96ed04e440acadbf5564e132b162d5ab104597..ab3bb1db794e76613d40225260272e03ad733782 100644 --- a/library/Class/WebService/SIGB/Decalog/Service.php +++ b/library/Class/WebService/SIGB/Decalog/Service.php @@ -314,7 +314,7 @@ class Class_WebService_SIGB_Decalog_Service extends Class_WebService_SIGB_Abstra protected function _callDelAction(string $url, array $params = []) : string { return $this->httpDelete($url, - $params, + http_build_query($params), Zend_Http_Client::ENC_URLENCODED, $this->_header()); } diff --git a/tests/library/Class/WebService/SIGB/DecalogTest.php b/tests/library/Class/WebService/SIGB/DecalogTest.php index 1ba97343be8004c38ad2fa27ef17900de2a72ab6..f72f0cd61e9eebadea4227f6dcfe124e70488931 100644 --- a/tests/library/Class/WebService/SIGB/DecalogTest.php +++ b/tests/library/Class/WebService/SIGB/DecalogTest.php @@ -557,7 +557,7 @@ class DecalogOperationsTest extends DecalogAuthenticationTest { ->answers(DecalogFixtures::jsonRenewRecordOK()) ->whenCalled('delData') ->with('http://decalog-sigb/my-institution-code/booking/user/3396790941099222416/2974201090410743352', - [], + '', 'application/x-www-form-urlencoded', ['headers' => 'apikey:my-key']) ->answers(DecalogFixtures::jsonDeleteReserveOK())