The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Commit 791506c0

791506c0dbc6Merged

aryaamin <[email protected]> · 2 months ago · 1 file · ~1 modified

Description

fix: allow empty onboarding approval requests

Details

Commit
791506c0dbc6
Parent
9c0e6fd29fea

apps/dashboard/src/main.tsxmodifiedView file

@@ -95,13 +95,12 @@
9595 }
9696
9797 async function api(path: string, init?: RequestInit) {
98+ const headers = new Headers(init?.headers);
99+ if (init?.body && !headers.has('content-type')) headers.set('content-type', 'application/json');
98100 return fetch(path, {
99101 ...init,
100102 credentials: 'same-origin',
101- headers: {
102- 'content-type': 'application/json',
103- ...(init?.headers ?? {}),
104- },
103+ headers,
105104 }).then(async (response) => {
106105 if (!response.ok)
107106 throw new Error((await response.text()) || `Request failed: ${response.status}`);