GUI-STUDIO commited on
Commit
f968842
·
1 Parent(s): eae7a98

Update index.ts

Browse files
Files changed (1) hide show
  1. src/index.ts +1 -1
src/index.ts CHANGED
@@ -65,7 +65,7 @@ const app = new Elysia()
65
  })
66
 
67
  .get("/foo", (ctx) => {
68
- const REQ_headers = ctx.req.raw.headers;
69
  console.log("\n", "REQ_headers", REQ_headers, "\n");
70
  return "🦊 Hello Rafiki 🍿";
71
  })
 
65
  })
66
 
67
  .get("/foo", (ctx) => {
68
+ const REQ_headers = ctx?.request?.headers;
69
  console.log("\n", "REQ_headers", REQ_headers, "\n");
70
  return "🦊 Hello Rafiki 🍿";
71
  })