Add X-Purpose header to link prefetcher

This commit is contained in:
Alexandre Oliveira 2018-08-07 21:09:45 -03:00
parent 22743982da
commit 619b054b95

View File

@ -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) {