1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

Fix mime type for accept header

This commit is contained in:
Sven Merk 2019-03-29 14:45:05 +01:00
parent 55e3622e6b
commit 3191d8bb26
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class WhitesourceRepository implements Serializable {
]
//fetchFileFromWhiteSource(reportName, requestContent)
httpWhitesource(requestContent, 'APPLICATION_PDF', headers, reportName)
httpWhitesource(requestContent, 'APPLICATION_OCTETSTREAM', headers, reportName)
}
def fetchProductLicenseAlerts() {

View File

@ -352,7 +352,7 @@ class WhitesourceRepositoryTest extends BasePiperTest {
[
url : repository.config.whitesource.serviceUrl,
httpMode : 'POST',
acceptType : 'APPLICATION_PDF',
acceptType : 'APPLICATION_OCTETSTREAM',
contentType : 'APPLICATION_JSON',
requestBody : requestBody,
quiet : false,