Skip to content

Commit 24af873

Browse files
committed
mcp streamable http client
1 parent e4414f7 commit 24af873

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/MCP/StreamableHttpTransport.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ public function send(array $data): void
8686
throw new McpException('Authorization failed: Insufficient permissions');
8787
}
8888

89-
if ($response->getStatusCode() !== 200) {
90-
throw new McpException('HTTP request failed with status: ' . $response->getStatusCode());
91-
}
92-
9389
// Extract session ID from response headers if present
9490
if ($response->hasHeader('X-Session-ID')) {
9591
$this->sessionId = $response->getHeader('X-Session-ID')[0];

0 commit comments

Comments
 (0)