From 377535c82d55ce76c1f6f9fa68bdd10dda1e3624 Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Mon, 7 Oct 2024 20:50:30 -0700 Subject: [PATCH] fix(proxy): hono header access --- libs/proxy/package.json | 2 +- libs/proxy/src/hono.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/proxy/package.json b/libs/proxy/package.json index 7fc56cd..dd4a08f 100644 --- a/libs/proxy/package.json +++ b/libs/proxy/package.json @@ -1,7 +1,7 @@ { "name": "@fal-ai/server-proxy", "description": "The fal.ai server proxy adapter for JavaScript and TypeScript Web frameworks", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "repository": { "type": "git", diff --git a/libs/proxy/src/hono.ts b/libs/proxy/src/hono.ts index bf8f9cf..2f82afc 100644 --- a/libs/proxy/src/hono.ts +++ b/libs/proxy/src/hono.ts @@ -38,7 +38,7 @@ export function createRouteHandler({ return context.json(data, status as StatusCode, responseHeaders); }, getHeaders: () => responseHeaders, - getHeader: (name) => context.req.header[name], + getHeader: (name) => context.req.header(name), sendHeader: (name, value) => (responseHeaders[name] = value), getRequestBody: async () => JSON.stringify(await context.req.json()), sendResponse: responsePassthrough,