diff --git a/services/capture/src/routes/capture.js b/services/capture/src/routes/capture.js index f9444aa..628023f 100644 --- a/services/capture/src/routes/capture.js +++ b/services/capture/src/routes/capture.js @@ -484,7 +484,10 @@ router.post('/stop', async (req, res) => { const mamResponse = await fetch(`${MAM_API_URL}/api/v1/assets/${completedSession.assetId}/${path}`, { method: 'POST', - headers: { 'Content-Type': 'application/json' }, + headers: { + 'Content-Type': 'application/json', + ...(MAM_API_TOKEN ? { Authorization: `Bearer ${MAM_API_TOKEN}` } : { 'X-Requested-With': 'dragonflight-ui' }), + }, body: JSON.stringify(body), }); if (!mamResponse.ok) {