Skip to content

Commit 5ac9705

Browse files
committed
undo header
1 parent 793ada9 commit 5ac9705

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apps/api/src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,11 @@ const app = new Elysia()
111111
"/rpc/*",
112112
async ({ request, store }) => {
113113
try {
114-
const headers = new Headers(request.headers);
114+
const rpcContext = await createRPCContext({
115+
headers: request.headers,
116+
});
115117

116118
const handler = async () => {
117-
const rpcContext = await createRPCContext({
118-
headers,
119-
});
120119
const { response } = await rpcHandler.handle(request, {
121120
prefix: "/rpc",
122121
context: rpcContext,

0 commit comments

Comments
 (0)