perf: requestid
This commit is contained in:
@ -12,7 +12,6 @@ const SSE_HEADERS = {
|
|||||||
'Cache-Control': 'no-cache',
|
'Cache-Control': 'no-cache',
|
||||||
Connection: 'keep-alive',
|
Connection: 'keep-alive',
|
||||||
Accept: 'text/event-stream',
|
Accept: 'text/event-stream',
|
||||||
requestid: genRandomId(),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
interface SSEConfig {
|
interface SSEConfig {
|
||||||
@ -53,6 +52,7 @@ export default async (config: SSEConfig, url: string = DEFAULT_SSE_URL): Promise
|
|||||||
...SSE_HEADERS,
|
...SSE_HEADERS,
|
||||||
Authorization: glsWithCatch('accessToken'),
|
Authorization: glsWithCatch('accessToken'),
|
||||||
'enterprise-id': store.enterpriseInfo?.id?.toString(),
|
'enterprise-id': store.enterpriseInfo?.id?.toString(),
|
||||||
|
requestid: genRandomId(),
|
||||||
...headers,
|
...headers,
|
||||||
},
|
},
|
||||||
body,
|
body,
|
||||||
|
|||||||
Reference in New Issue
Block a user