ManimCat-show / src /utils /request-client-id.ts
Bin29's picture
Sync from main: 7f43649 fix(startup): skip the sandbox probe only in explicit browser-only mode
6cda6d8
Raw History Blame Contribute Delete
215 Bytes
import type express from 'express'
export function getRequestClientId(req: express.Request): string | undefined {
const clientId = String(req.headers['x-client-id'] || '').trim()
return clientId || undefined
}