Add JSDoc to Icinga.Loader.prototype.processRedirectHeader()

refs #8626
This commit is contained in:
Eric Lippmann 2015-03-11 21:26:44 +01:00
parent 031f9ddc84
commit 7f94858b8d
1 changed files with 9 additions and 0 deletions

View File

@ -245,6 +245,15 @@
}
},
/**
* Process the X-Icinga-Redirect HTTP Response Header
*
* If the response includes the X-Icinga-Redirect header, redirects to the URL associated with the header.
*
* @param {object} req Current request
*
* @returns {boolean} Whether we're about to redirect
*/
processRedirectHeader: function(req) {
var icinga = this.icinga,
redirect = req.getResponseHeader('X-Icinga-Redirect');