@singi-labs/sifa-sdk 0.12.28 → 0.12.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1245,7 +1245,10 @@ async function castRoadmapVote(config, key, options = {}) {
1245
1245
  try {
1246
1246
  const res = await fetchFn(url, {
1247
1247
  method: "POST",
1248
- headers: { "Content-Type": "application/json", ...options.headers ?? {} },
1248
+ // No body: the item key is in the URL. Do NOT declare a JSON content-type
1249
+ // for an empty body — Fastify rejects that with a 400 before the handler
1250
+ // runs. Only forward caller-provided headers.
1251
+ ...options.headers ? { headers: options.headers } : {},
1249
1252
  credentials: options.credentials ?? "include",
1250
1253
  signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 1e4)
1251
1254
  });