New header for database host serving the request
This commit is contained in:
parent
ae2c6f01d7
commit
3a26692448
5
NEWS.md
5
NEWS.md
@ -1,6 +1,10 @@
|
|||||||
1.16.1 - 2014-mm-dd
|
1.16.1 - 2014-mm-dd
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
New features:
|
||||||
|
|
||||||
|
* New header for database host serving the request
|
||||||
|
|
||||||
Enhancements:
|
Enhancements:
|
||||||
|
|
||||||
* Upgrades dependencies:
|
* Upgrades dependencies:
|
||||||
@ -9,7 +13,6 @@ Enhancements:
|
|||||||
* log4js
|
* log4js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1.16.0 - 2014-08-19
|
1.16.0 - 2014-08-19
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -479,6 +479,9 @@ function handleQuery(req, res) {
|
|||||||
if (global.settings.api_hostname) {
|
if (global.settings.api_hostname) {
|
||||||
res.header('X-Served-By-Host', global.settings.api_hostname);
|
res.header('X-Served-By-Host', global.settings.api_hostname);
|
||||||
}
|
}
|
||||||
|
if (dbopts.host) {
|
||||||
|
res.header('X-Served-By-DB-Host', dbopts.host);
|
||||||
|
}
|
||||||
formatter.sendResponse(opts, this);
|
formatter.sendResponse(opts, this);
|
||||||
},
|
},
|
||||||
function errorHandle(err){
|
function errorHandle(err){
|
||||||
|
Loading…
Reference in New Issue
Block a user