From 1e7bd9a3e1655dca9ebab277db5710e18c140b92 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Mon, 25 Nov 2024 14:40:51 +0100 Subject: [PATCH] feat: Add go http library as recognized terminal --- src/middlewares/presentation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/middlewares/presentation.ts b/src/middlewares/presentation.ts index 3792a6f..49f132c 100644 --- a/src/middlewares/presentation.ts +++ b/src/middlewares/presentation.ts @@ -2,7 +2,8 @@ import { createMiddleware } from "hono/factory"; export type PresentationType = "terminal" | "browser"; -const TERMINAL_USER_AGENT = /^(curl|wget|python-urllib|pycurl|java)/i; +const TERMINAL_USER_AGENT = + /^(curl|wget|python-urllib|pycurl|java|go-http-client|php)/i; const presentation = createMiddleware<{ Variables: {