aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSylwester Wróblewski <sylwek.wroblewski@gmail.com>2022-10-15 17:16:37 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-10-16 11:06:34 +0200
commit956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc (patch)
tree57830298cf40e8b1bd2c48271e40b0748bfb1dda /src
parent0800e9ac3cc005aba67461a9f697e7a7cf791ae2 (diff)
downloadhomer-956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc.tar.gz
homer-956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc.tar.zst
homer-956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc.zip
Fixed 'method' not defaulting to HEAD request in Ping functionality
Diffstat (limited to 'src')
-rw-r--r--src/components/services/Ping.vue2
1 files changed, 1 insertions, 1 deletions
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 {
29 }, 29 },
30 methods: { 30 methods: {
31 fetchStatus: async function () { 31 fetchStatus: async function () {
32 const method = typeof this.item.method === 'string' ? this.item.method.toUpperCase() : 'unknown'; 32 const method = typeof this.item.method === 'string' ? this.item.method.toUpperCase() : 'HEAD';
33 33
34 if (!['GET', 'HEAD', 'OPTION'].includes(method)) { 34 if (!['GET', 'HEAD', 'OPTION'].includes(method)) {
35 console.error(`Ping: ${method} is not a supported HTTP method`); 35 console.error(`Ping: ${method} is not a supported HTTP method`);