Consistent uppercase POST

This commit is contained in:
ekzyis 2023-12-03 04:42:29 +01:00
parent f291a14630
commit 2af9ac29df
1 changed files with 1 additions and 1 deletions

View File

@ -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}`