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;