Skip to content

Commit

Permalink
Fix Content-Type in request header (#335)
Browse files Browse the repository at this point in the history
- Content-Type should be json instead of octet-stream for these requests.

 - Defect: https://jazz07.rchland.ibm.com:13443/jazz/web/projects/CSSD#action=com.ibm.team.workitem.viewWorkItem&id=671019

Signed-off-by: Nabil Ananthamangalath <[email protected]>
  • Loading branch information
nabilpandiyalayil authored and rfrandse committed Jan 8, 2025
1 parent 2db1c4f commit 307bd4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/modules/SecurityAndAccess/CertificatesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const CertificatesStore = defineStore('certificates', {
};
return await api
.patch(getCertificateProp(type, 'location'), fileObj, {
headers: { 'Content-Type': 'application/octet-stream' },
headers: { 'Content-Type': 'application/json' },
})
.then(() => {
this.getAcfCertificate();
Expand Down Expand Up @@ -189,7 +189,7 @@ export const CertificatesStore = defineStore('certificates', {
};
return await api
.patch(getCertificateProp(type, 'location'), fileObj, {
headers: { 'Content-Type': 'application/octet-stream' },
headers: { 'Content-Type': 'application/json' },
})
.then(() =>
i18n.global.t('pageCertificates.toast.successAddCertificate', {
Expand Down Expand Up @@ -235,7 +235,7 @@ export const CertificatesStore = defineStore('certificates', {
};
return await api
.patch(location, fileObj, {
headers: { 'Content-Type': 'application/octet-stream' },
headers: { 'Content-Type': 'application/json' },
})
.then(() => {
this.getAcfCertificate();
Expand Down

0 comments on commit 307bd4d

Please sign in to comment.