feat: removed unnecessary headers

This commit is contained in:
Junseo Park 2021-02-27 19:43:56 +09:00
parent 1af428835a
commit 02890b3445

View File

@ -36,7 +36,7 @@ const AddBot:NextPage<AddBotProps> = ({ logged, user, csrfToken, theme }) => {
}
async function submitBot(value: AddBotSubmit) {
const res = await Fetch<SubmittedBot>(`/bots/${value.id}`, { method: 'POST', body: JSON.stringify(cleanObject<AddBotSubmit>(value)), headers: { 'content-type': 'application/json' } })
const res = await Fetch<SubmittedBot>(`/bots/${value.id}`, { method: 'POST', body: JSON.stringify(cleanObject<AddBotSubmit>(value)) })
setData(res)
}
if(!logged) {