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