fix default content type
This commit is contained in:
@@ -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",
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user