Commit 7a6f8cc
fix: add Accept header for MCP Streamable HTTP protocol compliance
The gateway returns 406 Not Acceptable when the Accept header doesn't
include both application/json and text/event-stream, as required by
the MCP Streamable HTTP transport spec (2025-03-26).
Add 'Accept: application/json, text/event-stream' to all fetch calls
in TC-SH-014 and TC-SH-015 E2E tests.
Signed-off-by: Myko <myko@mcpmux.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>1 parent b416c3e commit 7a6f8cc
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| 356 | + | |
355 | 357 | | |
356 | 358 | | |
357 | 359 | | |
| |||
429 | 431 | | |
430 | 432 | | |
431 | 433 | | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
461 | 464 | | |
462 | 465 | | |
463 | 466 | | |
| 467 | + | |
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
| |||
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
| 486 | + | |
482 | 487 | | |
483 | 488 | | |
484 | 489 | | |
| |||
0 commit comments