Skip to content

Commit

Permalink
fix(proxy): hono header access
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti committed Oct 8, 2024
1 parent 543b920 commit 377535c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/proxy/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion libs/proxy/src/hono.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 377535c

Please sign in to comment.