Skip to content

Commit

Permalink
Impr
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian-panek-vmltech committed May 17, 2021
1 parent 8cd16f3 commit f476188
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ open class HttpClient(private val common: CommonExtension) {
basicPassword.set(value.second)
}

fun fileTransferCredentials() {
basicCredentials = common.fileTransfer.credentials
}

val multipartTextType = common.obj.typed<ContentType> { convention(ContentType.create(ContentType.TEXT_PLAIN.mimeType, StandardCharsets.UTF_8)) }

val multipartBinaryType = common.obj.typed<ContentType> { convention(ContentType.DEFAULT_BINARY) }
Expand Down

0 comments on commit f476188

Please sign in to comment.