Skip to content

Commit

Permalink
Merge pull request #33 from piterator-org/ua
Browse files Browse the repository at this point in the history
Add crawler User-Agent header `LDABot`
  • Loading branch information
wxh06 authored Jan 16, 2025
2 parents 677d8b7 + 0f82890 commit 80a08a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/archive/src/lib/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export async function getResponse(
headers: {
"x-luogu-type": "content-only",
"x-lentille-request": "content-only",
"User-Agent": "LDABot",
From: "[email protected]",
...(cookie ? { cookie: process.env.COOKIE! } : {}),
},
cache: "no-cache",
Expand Down

0 comments on commit 80a08a0

Please sign in to comment.