@dainprotocol/tunnel 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -481,10 +481,10 @@ class DainTunnelServer {
481
481
  const sseId = (0, uuid_1.v4)();
482
482
  console.log(`[SSE E2E] Server: Establishing SSE connection ${sseId} from browser to ${req.url}`);
483
483
  // Set SSE headers with anti-buffering directives
484
+ // Note: Do NOT set 'Connection: keep-alive' - it's forbidden in HTTP/2 and will cause immediate disconnect
484
485
  res.writeHead(200, {
485
486
  'Content-Type': 'text/event-stream',
486
487
  'Cache-Control': 'no-cache',
487
- 'Connection': 'keep-alive',
488
488
  'X-Accel-Buffering': 'no', // Disable nginx buffering
489
489
  });
490
490
  // Flush headers immediately to establish SSE connection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/tunnel",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "private": false,