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 updateProfilePictureEndpoint = haveNewProfilePicture ? `/api/UpdateMyUser/profile-picture` : `/api/UpdateMyUser/profile-picture?url=${myUserModel.storedDataUrls.profilePictureUrl}`;
|
||||||
const response = await client.post(updateProfilePictureEndpoint, profilePicture, {
|
const response = await client.post(updateProfilePictureEndpoint, profilePicture, {
|
||||||
headers: {
|
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 updateBannerPictureEndpoint = haveNewBannerPicture ? `/api/UpdateMyUser/banner-picture` : `/api/UpdateMyUser/banner-picture?url=${myUserModel.storedDataUrls.bannerPictureUrl}`;
|
||||||
const response = await client.post(updateBannerPictureEndpoint, bannerPicture, {
|
const response = await client.post(updateBannerPictureEndpoint, bannerPicture, {
|
||||||
headers: {
|
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 updateWebsiteIconEndpoint = haveNewWebsiteIcon ? `/api/UpdateMyUser/website-icon` : `/api/UpdateMyUser/website-icon?url=${myUserModel.storedDataUrls.websiteIconUrl}`;
|
||||||
const response = await client.post(updateWebsiteIconEndpoint, websiteIcon, {
|
const response = await client.post(updateWebsiteIconEndpoint, websiteIcon, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': websiteIcon?.type ?? "application/stream-octet",
|
'Content-Type': websiteIcon?.type ?? "application/octet-stream",
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user