Skip to content

Commit 09abdf2

Browse files
author
Jeferson Almeida
committed
* fixing the double quotes problem
1 parent bdd15dc commit 09abdf2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fccloudapi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,7 @@ protected function afterRequestDebug(string $method, string $url, string $postDa
25592559
if ($this->debug) {
25602560

25612561
// normalize the line breaks
2562-
$result = str_replace('\r\n', '\n', trim($result));
2562+
$result = str_replace("\r\n", "\n", trim($result));
25632563

25642564
// request
25652565
$this->debugMessages['Request'] = "$method $url";
@@ -2569,8 +2569,8 @@ protected function afterRequestDebug(string $method, string $url, string $postDa
25692569

25702570
// request headers
25712571
$rawRequest = curl_getinfo($this->curl_handle, CURLINFO_HEADER_OUT);
2572-
$rawRequest = str_replace('\r\n', '\n', trim($rawRequest));
2573-
$lines = explode('\n', $rawRequest);
2572+
$rawRequest = str_replace("\r\n", "\n", trim($rawRequest));
2573+
$lines = explode("\n", $rawRequest);
25742574
array_shift($lines); // remove the first line and keep the headers
25752575
$headers = [];
25762576
foreach ($lines as $line) {
@@ -2592,8 +2592,8 @@ protected function afterRequestDebug(string $method, string $url, string $postDa
25922592
$this->debugMessages['Response Code'] = curl_getinfo($this->curl_handle, CURLINFO_HTTP_CODE);
25932593

25942594
// Response Headers and body
2595-
[$rawHeaders, $body] = explode('\n\n', $result);
2596-
$lines = explode('\n', trim($rawHeaders));
2595+
[$rawHeaders, $body] = explode("\n\n", $result, 2);
2596+
$lines = explode("\n", trim($rawHeaders));
25972597
array_shift($lines);
25982598
$headers = [];
25992599
foreach ($lines as $line) {

0 commit comments

Comments
 (0)