From 9cd96dc288125e3013708fc4b58053076e7d601d Mon Sep 17 00:00:00 2001 From: Dominic Villemure Date: Wed, 10 Jul 2024 01:53:16 -0400 Subject: [PATCH] fix default content type --- src/stores/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/user.js b/src/stores/user.js index be2b170..e1d5bc5 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -28,7 +28,7 @@ export const useUserStore = defineStore('user', () => { const updateProfilePictureEndpoint = haveNewProfilePicture ? `/api/UpdateMyUser/profile-picture` : `/api/UpdateMyUser/profile-picture?url=${myUserModel.storedDataUrls.profilePictureUrl}`; const response = await client.post(updateProfilePictureEndpoint, profilePicture, { headers: { - 'Content-Type': profilePicture?.type ?? "application/stream-octet", + 'Content-Type': profilePicture?.type ?? "application/octet-stream", } }); @@ -42,7 +42,7 @@ export const useUserStore = defineStore('user', () => { const updateBannerPictureEndpoint = haveNewBannerPicture ? `/api/UpdateMyUser/banner-picture` : `/api/UpdateMyUser/banner-picture?url=${myUserModel.storedDataUrls.bannerPictureUrl}`; const response = await client.post(updateBannerPictureEndpoint, bannerPicture, { headers: { - 'Content-Type': bannerPicture?.type ?? "application/stream-octet", + 'Content-Type': bannerPicture?.type ?? "octet-stream", } }); @@ -58,7 +58,7 @@ export const useUserStore = defineStore('user', () => { const updateWebsiteIconEndpoint = haveNewWebsiteIcon ? `/api/UpdateMyUser/website-icon` : `/api/UpdateMyUser/website-icon?url=${myUserModel.storedDataUrls.websiteIconUrl}`; const response = await client.post(updateWebsiteIconEndpoint, websiteIcon, { headers: { - 'Content-Type': websiteIcon?.type ?? "application/stream-octet", + 'Content-Type': websiteIcon?.type ?? "application/octet-stream", } });