forked from extern/homer
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: {
|
||||
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`);
|
||||
|
Loading…
Reference in New Issue
Block a user