From 619b054b95cdecac430f204f2880fef197aedfe9 Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira Date: Tue, 7 Aug 2018 21:09:45 -0300 Subject: [PATCH] Add X-Purpose header to link prefetcher --- src/plugins/irc-events/link.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/irc-events/link.js b/src/plugins/irc-events/link.js index d32d94d5..53f5d985 100644 --- a/src/plugins/irc-events/link.js +++ b/src/plugins/irc-events/link.js @@ -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) {