Merge pull request #2695 from RockyTV/rockytv

Add X-Purpose header to link prefetcher
This commit is contained in:
Jérémie Astori 2018-08-11 01:42:41 -04:00 committed by GitHub
commit 40d2fdf5bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,6 +301,7 @@ function getRequestHeaders(headers) {
const formattedHeaders = { const formattedHeaders = {
"User-Agent": "Mozilla/5.0 (compatible; The Lounge IRC Client; +https://github.com/thelounge/thelounge)", "User-Agent": "Mozilla/5.0 (compatible; The Lounge IRC Client; +https://github.com/thelounge/thelounge)",
"Accept": headers.accept || "*/*", "Accept": headers.accept || "*/*",
"X-Purpose": "preview",
}; };
if (headers.language) { if (headers.language) {