mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Add proxy-compatible headers to SSE stream endpoint
This commit is contained in:
1 parent
ee5cb4173f
commit
2c9b7dcebb
1 file changed
+4
@@ -8,6 +8,10 @@ export function createSSERoutes() {
|
||||
const app = new Hono()
|
||||
|
||||
app.get('/stream', async (c) => {
|
||||
c.header('Cache-Control', 'no-cache, no-transform')
|
||||
c.header('Connection', 'keep-alive')
|
||||
c.header('Content-Encoding', 'Identity')
|
||||
|
||||
const directoriesParam = c.req.query('directories')
|
||||
const directories = directoriesParam ? directoriesParam.split(',').filter(Boolean) : []
|
||||
const clientId = `client_${Date.now()}_${Math.random().toString(36).slice(2)}`
|
||||
|
||||
Reference in new issue
Block a user