Skip to content

Commit

Permalink
changing content type - test
Browse files Browse the repository at this point in the history
  • Loading branch information
jchaves committed Nov 24, 2021
1 parent 9e7db3e commit d1a8583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/ods/services/NexusService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class NexusService {

restCall = restCall.field(
repositoryType == 'raw' || repositoryType == 'maven2' ? "${repositoryType}.asset1" : "${repositoryType}.asset",
new ByteArrayInputStream(artifact), ContentType.create(contentType))
new ByteArrayInputStream(artifact), ContentType.create('multipart/form-data'))

def response = restCall.asString()
response.ifSuccess {
Expand Down

0 comments on commit d1a8583

Please sign in to comment.