diff --git a/backend/data/recipes.db-shm b/backend/data/recipes.db-shm index 373dff3..f36ce4b 100644 Binary files a/backend/data/recipes.db-shm and b/backend/data/recipes.db-shm differ diff --git a/backend/data/recipes.db-wal b/backend/data/recipes.db-wal index 6094a2e..eb8f194 100644 Binary files a/backend/data/recipes.db-wal and b/backend/data/recipes.db-wal differ diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 9d3f251..d3c5476 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -3,7 +3,7 @@ const BASE_URL = '/api' export async function apiFetch(path: string, options?: RequestInit): Promise { const method = options?.method?.toUpperCase() || 'GET'; const headers: Record = { ...options?.headers as Record }; - if (['POST', 'PUT', 'PATCH'].includes(method)) { + if (['POST', 'PUT', 'PATCH'].includes(method) && options?.body) { headers['Content-Type'] = headers['Content-Type'] || 'application/json'; } const res = await fetch(`${BASE_URL}${path}`, {