diff --git a/src/BeSimple/SoapClient/SoapClient.php b/src/BeSimple/SoapClient/SoapClient.php index f4c3917..e2dfbd0 100644 --- a/src/BeSimple/SoapClient/SoapClient.php +++ b/src/BeSimple/SoapClient/SoapClient.php @@ -178,6 +178,8 @@ class SoapClient extends \SoapClient $headers = array(); } + $headers = $this->filterRequestHeaders($soapRequest, $headers); + // execute HTTP request with cURL $responseSuccessfull = $this->curl->exec( $location, @@ -258,6 +260,19 @@ class SoapClient extends \SoapClient return $soapResponse; } + /** + * Filters HTTP headers which will be sent + * + * @param SoapRequest $soapRequest SOAP request object + * @param array $headers An array of HTTP headers + * + * @return array + */ + protected function filterRequestHeaders(SoapRequest $soapRequest, array $headers) + { + return $headers; + } + /** * Get last request HTTP headers. *