diff --git a/src/app/api/zeus/index.ts b/src/app/api/zeus/index.ts index 6087b97..d12329f 100644 --- a/src/app/api/zeus/index.ts +++ b/src/app/api/zeus/index.ts @@ -18,7 +18,8 @@ export const apiSubscription = (options: chainOptions) => { // const headers : HeadersInit = passedHeaders ? passedHeaders : empty; const client = createClient({ url: String(options[0]), - connectionParams: h ? Object.fromEntries(new Headers(h).entries()) : undefined, + + connectionParams: h !== undefined ? Object.fromEntries(new Headers(h).entries()) : undefined, }); const ws = new Proxy(