ManimCat / src /utils /request-client-id.ts
littlebrian's picture
Sync from enhance: d795216 feat: implement patch response parser for search and replace functionality
9bd4242
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
}