feat: Add go http library as recognized terminal

This commit is contained in:
Myzel394 2024-11-25 14:40:51 +01:00
parent 09e52b9d6e
commit 1e7bd9a3e1
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -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: {