Skip to content

Commit

Permalink
Fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Mar 20, 2024
1 parent 9e41624 commit 3ba7aef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions routes/_middleware.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { FreshContext } from "$fresh/server.ts";

const HEADER = new TextEncoder().encode("<!--- See something wrong? Let us know in our chat: https://t.me/grammyjs --->");
const HEADER = new TextEncoder().encode(
"<!--- See something wrong? Let us know in our chat: https://t.me/grammyjs --->",
);

export async function handler(req: Request, ctx: FreshContext) {
try {
Expand All @@ -21,7 +23,6 @@ export async function handler(req: Request, ctx: FreshContext) {
if (!headerSent) {
headerSent = true;
controller.enqueue(HEADER);
return;
}
controller.enqueue(result.value);
} else if (!result) {
Expand Down

0 comments on commit 3ba7aef

Please sign in to comment.