forked from LiveCarta/PayPal-PHP-SDK
turning tabs into spaces
This commit is contained in:
@@ -146,12 +146,12 @@ class PayPalHttpConnection
|
|||||||
throw $ex;
|
throw $ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get Request and Response Headers
|
// Get Request and Response Headers
|
||||||
$requestHeaders = curl_getinfo($ch, CURLINFO_HEADER_OUT);
|
$requestHeaders = curl_getinfo($ch, CURLINFO_HEADER_OUT);
|
||||||
//Using alternative solution to CURLINFO_HEADER_SIZE as it throws invalid number when called using PROXY.
|
//Using alternative solution to CURLINFO_HEADER_SIZE as it throws invalid number when called using PROXY.
|
||||||
$responseHeaderSize = mb_strlen($result,'8bit') - curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
|
$responseHeaderSize = mb_strlen($result,'8bit') - curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
|
||||||
$responseHeaders = mb_substr($result, 0, $responseHeaderSize, '8bit');
|
$responseHeaders = mb_substr($result, 0, $responseHeaderSize, '8bit');
|
||||||
$result = mb_substr($result, $responseHeaderSize, null, '8bit');
|
$result = mb_substr($result, $responseHeaderSize, null, '8bit');
|
||||||
|
|
||||||
$this->logger->debug("Request Headers \t: " . str_replace("\r\n", ", ", $requestHeaders));
|
$this->logger->debug("Request Headers \t: " . str_replace("\r\n", ", ", $requestHeaders));
|
||||||
$this->logger->debug(($data && $data != '' ? "Request Data\t\t: " . $data : "No Request Payload") . "\n" . str_repeat('-', 128) . "\n");
|
$this->logger->debug(($data && $data != '' ? "Request Data\t\t: " . $data : "No Request Payload") . "\n" . str_repeat('-', 128) . "\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user