Merge branch 'master' into fix/glitch-compo-picker

This commit is contained in:
cyril lopez 2020-10-08 09:37:32 +02:00 committed by GitHub
commit acbfe598d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,7 +277,7 @@ class Strapi {
async load() {
this.app.use(async (ctx, next) => {
if (ctx.request.url === '/_health' && ctx.request.method === 'HEAD') {
if (ctx.request.url === '/_health' && ['HEAD', 'GET'].includes(ctx.request.method)) {
ctx.set('strapi', 'You are so French!');
ctx.status = 204;
} else {