From: Sylwester Wróblewski Date: Sat, 15 Oct 2022 15:16:37 +0000 (+0200) Subject: Fixed 'method' not defaulting to HEAD request in Ping functionality X-Git-Tag: v22.10.2~12 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc;p=github%2Fbastienwirtz%2Fhomer.git Fixed 'method' not defaulting to HEAD request in Ping functionality --- diff --git a/src/components/services/Ping.vue b/src/components/services/Ping.vue index 571c5ad..07bc053 100644 --- a/src/components/services/Ping.vue +++ b/src/components/services/Ping.vue @@ -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`);