From cfbb5e1fc6493943ac47aba22a84af744ca2fb89 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 10 Mar 2023 13:52:03 +0530 Subject: [PATCH] WIP debug duplicated headers in production envs --- www/checkup/main.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/www/checkup/main.js b/www/checkup/main.js index cf4f716a9..1743d99da 100644 --- a/www/checkup/main.js +++ b/www/checkup/main.js @@ -1177,6 +1177,19 @@ define([ }); }); + ['/', '/blob/placeholder.txt', '/block/placeholder.txt'].forEach(relativeURL => { + assert(function (cb, msg) { + var url = new URL(relativeURL, trimmedUnsafe).href; + Tools.common_xhr(url, xhr => { + msg.appendChild(h('span', [ + h('p', '// XXX DEBUGGING DUPLICATED HEADERS'), + h('pre', xhr.getAllResponseHeaders()), + ])); + cb(false); + }); + }); + }); + var POLICY_ADVISORY = " This link will be included in the home page footer and 'About CryptPad' menu. It's advised that you either provide one or disable registration."; var APPCONFIG_DOCS_LINK = function (key, href) { return h('span', [