Skip to content

Commit 80a08a0

Browse files
authored
Merge pull request #33 from piterator-org/ua
Add crawler User-Agent header `LDABot`
2 parents 677d8b7 + 0f82890 commit 80a08a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/archive/src/lib/parser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export async function getResponse(
3131
headers: {
3232
"x-luogu-type": "content-only",
3333
"x-lentille-request": "content-only",
34+
"User-Agent": "LDABot",
35+
3436
...(cookie ? { cookie: process.env.COOKIE! } : {}),
3537
},
3638
cache: "no-cache",

0 commit comments

Comments
 (0)