diff options
author | Sylwester Wróblewski <sylwek.wroblewski@gmail.com> | 2022-10-15 17:16:37 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-10-16 11:06:34 +0200 |
commit | 956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc (patch) | |
tree | 57830298cf40e8b1bd2c48271e40b0748bfb1dda /src/components/services | |
parent | 0800e9ac3cc005aba67461a9f697e7a7cf791ae2 (diff) | |
download | homer-956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc.tar.gz homer-956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc.tar.zst homer-956f38a5dc6b86ccb38c8ecdb3c625d3eb565ebc.zip |
Fixed 'method' not defaulting to HEAD request in Ping functionality
Diffstat (limited to 'src/components/services')
-rw-r--r-- | src/components/services/Ping.vue | 2 |
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`); |