fix: add caching for defaultUA db call and code fixes
This commit is contained in:
1 parent
babe5ae177
commit
023cf5782d
13 files changed
+89
-19
No files matched your search
@@ -15,6 +15,10 @@ export const settingsSchema = z.object({
|
||||
defaultUserAgent: z
|
||||
.string()
|
||||
.max(500)
|
||||
.regex(
|
||||
/^[\t\x20-\x7E\x80-\xFF]*$/,
|
||||
"Only printable characters, spaces, and tabs are allowed (RFC 7230)"
|
||||
)
|
||||
.transform((val) => (val.trim() === "" ? null : val.trim()))
|
||||
.optional(),
|
||||
checkTTL: z
|
||||
|
||||
Reference in new issue
Block a user