Skip to content

Commit

Permalink
#377 ignore empty CA certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 5, 2022
1 parent 7da8cd2 commit 4b10e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/org/thp/cortex/services/JobRunnerSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class JobRunnerSrv @Inject() (
.deepMerge(worker.config)
.deepMerge(proxy_http)
.deepMerge(proxy_https)
(worker.config \ "cacerts").asOpt[String].foreach { cacerts =>
(worker.config \ "cacerts").asOpt[String].filterNot(_.isBlank).foreach { cacerts =>
val cacertsFile = jobFolder.resolve("input").resolve("cacerts")
Files.write(cacertsFile, cacerts.getBytes)
}
Expand Down

0 comments on commit 4b10e2b

Please sign in to comment.