Use GET for Keystone health check

Some WSGI implementations may not support HEAD, resulting in a
false negative for the health check. GET will give an accurate
result in these cases.

Change-Id: I0fa0ecbeac64525d9108bfa618ac1afa7dcaa2a3
Depends-On: I22686d05670fc6c947611f8044dea498239a4212
This commit is contained in:
Johannes Grassler 2017-04-26 17:56:11 +02:00
parent 9463c20a9c
commit 6f447e4e83
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ module.exports = function healthcheck(plugin, server) {
const req = request({
hostname: getHostname(),
port : getPort(),
method : 'HEAD'
method : 'GET'
}, (res)=> {
const statusCode = res.statusCode;
if (statusCode >= 400) {