Skip to content

Commit 59f37bf

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-86940' into MPI-PR24
# Conflicts: # app/code/Magento/Dhl/Test/Unit/Model/CarrierTest.php
2 parents 327a9e1 + 07fc68c commit 59f37bf

File tree

14 files changed

+897
-478
lines changed

14 files changed

+897
-478
lines changed

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ protected function _doRequest()
15411541

15421542
$responseBody = $this->_getCachedQuotes($request);
15431543
if ($responseBody === null) {
1544-
$debugData = ['request' => $request];
1544+
$debugData = ['request' => $this->filterDebugData($request)];
15451545
try {
15461546
/** @var \Magento\Framework\HTTP\ZendClient $client */
15471547
$client = $this->_httpClientFactory->create();
@@ -1550,7 +1550,7 @@ protected function _doRequest()
15501550
$client->setRawData($request);
15511551
$responseBody = $client->request(\Magento\Framework\HTTP\ZendClient::POST)->getBody();
15521552
$responseBody = utf8_decode($responseBody);
1553-
$debugData['result'] = $responseBody;
1553+
$debugData['result'] = $this->filterDebugData($responseBody);
15541554
$this->_setCachedQuotes($request, $responseBody);
15551555
} catch (\Exception $e) {
15561556
$this->_errors[$e->getCode()] = $e->getMessage();
@@ -1735,15 +1735,15 @@ protected function _getXMLTracking($trackings)
17351735

17361736
$responseBody = $this->_getCachedQuotes($request);
17371737
if ($responseBody === null) {
1738-
$debugData = ['request' => $request];
1738+
$debugData = ['request' => $this->filterDebugData($request)];
17391739
try {
17401740
/** @var \Magento\Framework\HTTP\ZendClient $client */
17411741
$client = $this->_httpClientFactory->create();
17421742
$client->setUri((string)$this->getConfigData('gateway_url'));
17431743
$client->setConfig(['maxredirects' => 0, 'timeout' => 30]);
17441744
$client->setRawData($request);
17451745
$responseBody = $client->request(\Magento\Framework\HTTP\ZendClient::POST)->getBody();
1746-
$debugData['result'] = $responseBody;
1746+
$debugData['result'] = $this->filterDebugData($responseBody);
17471747
$this->_setCachedQuotes($request, $responseBody);
17481748
} catch (\Exception $e) {
17491749
$this->_errors[$e->getCode()] = $e->getMessage();

0 commit comments

Comments
 (0)