mirror of
https://github.com/thelounge/thelounge
synced 2024-11-11 07:04:18 +00:00
Merge pull request #2695 from RockyTV/rockytv
Add X-Purpose header to link prefetcher
This commit is contained in:
commit
40d2fdf5bc
1 changed files with 1 additions and 0 deletions
|
@ -301,6 +301,7 @@ function getRequestHeaders(headers) {
|
|||
const formattedHeaders = {
|
||||
"User-Agent": "Mozilla/5.0 (compatible; The Lounge IRC Client; +https://github.com/thelounge/thelounge)",
|
||||
"Accept": headers.accept || "*/*",
|
||||
"X-Purpose": "preview",
|
||||
};
|
||||
|
||||
if (headers.language) {
|
||||
|
|
Loading…
Reference in a new issue