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,