From 3e29fba0522cb6b705dd5f915183316f9f7f9d6c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 2 Jul 2020 13:47:06 +0200 Subject: [PATCH] js: Transmit `X-Icinga-Autorefresh=1` with autorefresh requests --- public/js/icinga/loader.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 5cd0c1154..6fa3c38e6 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -245,6 +245,10 @@ // Not sure whether we need this Accept-header var headers = { 'X-Icinga-Accept': 'text/html' }; + if (autorefresh) { + headers['X-Icinga-Autorefresh'] = '1'; + } + // Ask for a new window id in case we don't already have one if (this.icinga.ui.hasWindowId()) { var windowId = this.icinga.ui.getWindowId();