From 2af9ac29df66bca119d7862ed475310e3df626fc Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 3 Dec 2023 04:42:29 +0100 Subject: [PATCH] Consistent uppercase POST --- vue/src/components/MarketForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue/src/components/MarketForm.vue b/vue/src/components/MarketForm.vue index 7551925..f72a6dc 100644 --- a/vue/src/components/MarketForm.vue +++ b/vue/src/components/MarketForm.vue @@ -33,7 +33,7 @@ const parseEndDate = endDate => { const submitForm = async () => { const url = window.origin + '/api/market' const body = JSON.stringify({ description: description.value, endDate: parseEndDate(endDate.value) }) - const res = await fetch(url, { method: 'post', headers: { 'Content-type': 'application/json' }, body }) + const res = await fetch(url, { method: 'POST', headers: { 'Content-type': 'application/json' }, body }) const resBody = await res.json() if (res.status !== 402) { err.value = `error: server responded with HTTP ${resBody.status}`