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:
parent
55e3622e6b
commit
3191d8bb26
@ -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() {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user