Fix case sensitivity for http header (#283)
This commit is contained in:
parent
06917f6af6
commit
bfc4728792
1 changed files with 3 additions and 3 deletions
|
|
@ -122,7 +122,7 @@ class HttpTransport extends BaseTransport
|
|||
$this->logger->debug('Received session ID', ['session_id' => $this->sessionId]);
|
||||
}
|
||||
|
||||
$contentType = $response->getHeaderLine('Content-Type');
|
||||
$contentType = strtolower($response->getHeaderLine('Content-Type'));
|
||||
|
||||
if (str_contains($contentType, 'text/event-stream')) {
|
||||
$this->activeStream = $response->getBody();
|
||||
|
|
|
|||
Loading…
Reference in a new issue