mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-06-26 04:31:37 +02:00
Fixed 'method' not defaulting to HEAD request in Ping functionality
This commit is contained in:
parent
0800e9ac3c
commit
956f38a5dc
@ -29,7 +29,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchStatus: async function () {
|
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)) {
|
if (!['GET', 'HEAD', 'OPTION'].includes(method)) {
|
||||||
console.error(`Ping: ${method} is not a supported HTTP method`);
|
console.error(`Ping: ${method} is not a supported HTTP method`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user