Fix case sensitivity for http header (#283)

This commit is contained in:
Christopher Hertel 2026-05-12 23:20:14 +02:00 • committed by GitHub
commit bfc4728792
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();