Skip to content

Commit 338331a

Browse files
Merge pull request #758 from liquity/fix-known-initiatives-fetching
fix: 405 when fetching known initiatives
2 parents ed7fa45 + 2a9be35 commit 338331a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

frontend/app/src/liquity-governance.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ export function useKnownInitiatives() {
246246
if (KNOWN_INITIATIVES_URL === undefined) {
247247
throw new Error("KNOWN_INITIATIVES_URL is not defined");
248248
}
249-
const response = await fetch(KNOWN_INITIATIVES_URL, {
250-
headers: { "Content-Type": "application/json" },
251-
});
249+
const response = await fetch(KNOWN_INITIATIVES_URL);
252250
return v.parse(KnownInitiativesSchema, await response.json());
253251
},
254252
enabled: KNOWN_INITIATIVES_URL !== undefined,

0 commit comments

Comments
 (0)