From c141dd39288bed066eb5ddd56a1fac0450c9f3e1 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 17 Aug 2012 08:27:20 +0200 Subject: [PATCH] send X-SCM-Client header for every ajax request --- scm-webapp/src/main/webapp/resources/js/sonia.global.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.global.js b/scm-webapp/src/main/webapp/resources/js/sonia.global.js index 25b8cb1db0..7246da041e 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.global.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.global.js @@ -28,9 +28,15 @@ * http://bitbucket.org/sdorra/scm-manager * */ + // enable debug mode, if console is available var debug = typeof console != 'undefined' && typeof console.debug != 'undefined'; +// send X-SCM-Client on every ajax request +Ext.Ajax.defaultHeaders = { + 'X-SCM-Client': 'WUI' +}; + var state = null; var admin = false;