Fixed 'method' not defaulting to HEAD request in Ping functionality

This commit is contained in:
Sylwester Wróblewski 2022-10-15 17:16:37 +02:00 committed by Bastien Wirtz
parent 0800e9ac3c
commit 956f38a5dc

View File

@ -29,7 +29,7 @@ export default {
},
methods: {
fetchStatus: async function () {
const method = typeof this.item.method === 'string' ? this.item.method.toUpperCase() : 'unknown';
const method = typeof this.item.method === 'string' ? this.item.method.toUpperCase() : 'HEAD';
if (!['GET', 'HEAD', 'OPTION'].includes(method)) {
console.error(`Ping: ${method} is not a supported HTTP method`);