mirror of
https://github.com/Myzel394/amiopen.now.git
synced 2025-06-18 07:25:27 +02:00
feat: Add go http library as recognized terminal
This commit is contained in:
parent
09e52b9d6e
commit
1e7bd9a3e1
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user