@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.
@@ -2236,7 +2236,10 @@ async function castRoadmapVote(config, key, options = {}) {
2236
2236
  try {
2237
2237
  const res = await fetchFn(url, {
2238
2238
  method: "POST",
2239
- headers: { "Content-Type": "application/json", ...options.headers ?? {} },
2239
+ // No body: the item key is in the URL. Do NOT declare a JSON content-type
2240
+ // for an empty body — Fastify rejects that with a 400 before the handler
2241
+ // runs. Only forward caller-provided headers.
2242
+ ...options.headers ? { headers: options.headers } : {},
2240
2243
  credentials: options.credentials ?? "include",
2241
2244
  signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 1e4)
2242
2245
  });