diff options
| author | Shulhan <ms@kilabit.info> | 2023-05-05 18:17:37 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-05-05 18:17:37 +0700 |
| commit | 36a4816c921c2c52118ebe2ad9c9e39fe8e587a4 (patch) | |
| tree | ead62b8cba519ebe56aea28d12ed178ac29778cd | |
| parent | a3f0257b8f3c38d41de2030352aee002216342cb (diff) | |
| download | gorankusu-36a4816c921c2c52118ebe2ad9c9e39fe8e587a4.tar.xz | |
all: set the request ConvertParams before calling runHttpTarget
The req, RunRequest instance, is from request so the
HttpTarget.ConvertParams need to be set from the original HttpTarget.
This fix the conditional rr.HttpTarget.ConvertParams == nil always true
when calling runHttpTarget.
| -rw-r--r-- | trunks.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -192,6 +192,7 @@ func (trunks *Trunks) RunHttp(req *RunRequest) (res *RunResponse, err error) { if origHttpTarget.Run == nil { req.Target.BaseUrl = origTarget.BaseUrl req.Target.Name = origTarget.Name + req.HttpTarget.ConvertParams = origHttpTarget.ConvertParams res, err = trunks.runHttpTarget(req) } else { req := generateRunRequest(trunks.Env, req, origTarget, origHttpTarget) |
