Skip to content

Commit

Permalink
misc: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antho-bunny committed Sep 18, 2024
1 parent 721b1d7 commit 26d7917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/good-olives-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"es-user-agent-middleware": patch
---

Bump
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ console.log("Starting server...");

BunnySDK.net.http.servePullZone({ url: "https://echo.free.beeceptor.com/" })
.onOriginRequest(
async (ctx) => {
(ctx) => {
ctx.request.headers.set("mobile", "true");
const ua = ctx.request.headers.get("User-Agent");
const parser = new UA.UAParser(ua);
Expand Down

0 comments on commit 26d7917

Please sign in to comment.