1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-22 03:39:08 +02:00

21 lines
268 B
Go
Raw Normal View History

package common
import (
"github.com/corpix/uarand"
)
const RandomUserAgent = "*"
func GetUserAgent(val string) string {
if val == "" {
return val
}
if val != RandomUserAgent {
return val
}
// TODO: Change the implementation
return uarand.GetRandom()
}