feat: add shared user agent constants

This commit is contained in:
2026-05-18 14:07:33 +02:00
parent 825f481329
commit 9859ddea42
4 changed files with 21 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ import (
"fmt"
"io"
"mal/internal/domain"
"mal/pkg/net/useragent"
"mal/pkg/net/utls"
"net/http"
"net/url"
@@ -23,7 +24,7 @@ const (
allAnimeBaseURL = "https://api.allanime.day"
allAnimeReferer = "https://allmanga.to/"
allAnimeOrigin = "https://youtu-chan.com"
defaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/121.0"
defaultUserAgent = useragent.Firefox121
)
var (