Skip to content

Commit

Permalink
Legger til callId :@
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbjoern committed Jan 27, 2025
1 parent 04adb46 commit b8380a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/services/fetchProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@ export const fetchWithRetry = async <ResponseBody>(
throw new Error(`Unable to fetch ${url}: ${retries} retries left`);
}

const callid = randomUUID();
const response = await fetch(url, {
method,
body: JSON.stringify(requestBody),
headers: {
Authorization: `Bearer ${oboToken}`,
Accept: 'application/json',
'Content-Type': 'application/json',
'Nav-CallId': callid,
},
next: { revalidate: 0, tags },
});
Expand Down

0 comments on commit b8380a4

Please sign in to comment.