mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-09 11:43:39 +00:00
feat: support request-id header
This commit is contained in:
@@ -40,6 +40,7 @@ export class Client {
|
||||
|
||||
const headers: Record<string, string> = {
|
||||
Accept: "application/json",
|
||||
"X-Request-ID": crypto.randomUUID(),
|
||||
};
|
||||
if (json !== undefined) {
|
||||
headers["Content-Type"] = "application/json";
|
||||
|
||||
Reference in New Issue
Block a user