@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | } |
| 525 | 525 | } else {
|
| 526 | 526 | $strError = substr($strResponse, $iHeaderSize); |
| 527 | - if (strlen($strError) > 0) {
|
|
| 527 | + if (strlen($strError) > 0) {
|
|
| 528 | 528 | $aError = json_decode($strError, true); |
| 529 | 529 | if (isset($aError['error'])) {
|
| 530 | 530 | $this->strLastError = $aError['error']['message'] ?? ''; |
@@ -561,11 +561,11 @@ discard block |
||
| 561 | 561 | {
|
| 562 | 562 | $aHeader = []; |
| 563 | 563 | $strHeader = trim($strHeader); |
| 564 | - $aLine = explode("\n",$strHeader);
|
|
| 564 | + $aLine = explode("\n", $strHeader);
|
|
| 565 | 565 | $aHeader['status'] = $aLine[0]; |
| 566 | 566 | array_shift($aLine); |
| 567 | 567 | |
| 568 | - foreach($aLine as $strLine){
|
|
| 568 | + foreach ($aLine as $strLine) {
|
|
| 569 | 569 | // only consider the first colon, since other colons can also appear in |
| 570 | 570 | // the header value - the rest of such a value would be lost |
| 571 | 571 | // (eg "Location: https: // www ...." - "// www ...." would be gone !) |