summaryrefslogtreecommitdiff
path: root/trunks.go
diff options
context:
space:
mode:
Diffstat (limited to 'trunks.go')
-rw-r--r--trunks.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/trunks.go b/trunks.go
index e3d8feb..52e8954 100644
--- a/trunks.go
+++ b/trunks.go
@@ -348,11 +348,17 @@ func (trunks *Trunks) getTargetByResultFilename(name string) (t *Target, ht *Htt
func (trunks *Trunks) runHttpTarget(rr *RunRequest) (res *RunResponse, err error) {
var (
logp = "runHttpTarget"
- httpc = libhttp.NewClient(rr.Target.BaseUrl, nil, true)
headers = rr.HttpTarget.Headers.ToHttpHeader()
params interface{}
)
+ httpcOpts := &libhttp.ClientOptions{
+ ServerUrl: rr.Target.BaseUrl,
+ AllowInsecure: true,
+ }
+
+ httpc := libhttp.NewClient(httpcOpts)
+
switch rr.HttpTarget.RequestType {
case libhttp.RequestTypeJSON:
params = rr.HttpTarget.Params.ToJsonObject()