From 2944418306489a4acc532bec9e720aafb88d2ec7 Mon Sep 17 00:00:00 2001 From: andyye <63383967+0ev@users.noreply.github.com> Date: Tue, 28 Nov 2023 23:19:27 +0900 Subject: [PATCH] Fix: change request to PUT --- .../src/components/ModalPopup/ModalMypageModify.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/web/src/components/ModalPopup/ModalMypageModify.tsx b/packages/web/src/components/ModalPopup/ModalMypageModify.tsx index b5dfeccd2..c11c6df99 100644 --- a/packages/web/src/components/ModalPopup/ModalMypageModify.tsx +++ b/packages/web/src/components/ModalPopup/ModalMypageModify.tsx @@ -71,8 +71,15 @@ const ButtonProfileImage = () => { }, }); if (data.url) { - const res = await axiosOri.put(data.url, image); - if (res.status === 204) { + const res = await axiosOri({ + url: data.url, + method: "put", + headers: { + "Content-Type": image.type, + }, + data: image, + }); + if (res.status === 200) { const data2 = await axios({ url: "/users/editProfileImg/done", method: "get",