This commit is contained in:
Dave Mc Nicoll 2023-11-17 16:02:05 -05:00
commit aba0ec3458
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ abstract class CurlTransport {
$response = $response->withHeader($key, $value); $response = $response->withHeader($key, $value);
} }
elseif ( strtoupper(substr($headerLine, 0, 4)) === 'HTTP' ) { elseif ( strtoupper(substr($headerLine, 0, 4)) === 'HTTP' ) {
list(,$code, $status) = explode(' ', trim($headerLine), 3); list(,$code, $status) = explode(' ', trim($headerLine), 3) + [ null, null, null ];
$response = $response->withStatus($code, $status); $response = $response->withStatus($code, $status);
} }