mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Add JSDoc to Icinga.Loader.prototype.processRedirectHeader()
refs #8626
This commit is contained in:
parent
031f9ddc84
commit
7f94858b8d
@ -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) {
|
processRedirectHeader: function(req) {
|
||||||
var icinga = this.icinga,
|
var icinga = this.icinga,
|
||||||
redirect = req.getResponseHeader('X-Icinga-Redirect');
|
redirect = req.getResponseHeader('X-Icinga-Redirect');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user