File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,8 @@ http:
336336 request-headers: # Set request header values
337337 - "Content-Type: text/html"
338338 request-query-params:
339- foo: 'bar'
339+ foo:
340+ - 'bar'
340341 headers: [] # Check http response headers for these patterns (e.g. "Content-Type: text/html")
341342 request-body: '{"key": "value"}' # request body
342343 body: [] # Check http response content for these patterns
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ type DefHTTP struct {
3636 resp * http.Response
3737 RequestHeader http.Header
3838 RequestBody string
39- RequestQueryParams map [string ]string
39+ RequestQueryParams map [string ][] string
4040 Timeout int
4141 loaded bool
4242 err error
@@ -166,8 +166,10 @@ func (u *DefHTTP) setupReal() error {
166166
167167 if u .RequestQueryParams != nil {
168168 qParams := req .URL .Query ()
169- for k , v := range u .RequestQueryParams {
170- qParams .Add (k , v )
169+ for k , params := range u .RequestQueryParams {
170+ for _ , param := range params {
171+ qParams .Add (k , param )
172+ }
171173 }
172174 req .URL .RawQuery = qParams .Encode ()
173175 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ type Config struct {
4242 RequestBody string
4343 Proxy string
4444 RequestHeader []string
45- RequestQueryParams map [string ]string
45+ RequestQueryParams map [string ][] string
4646 RetryTimeout time.Duration
4747 RunLevel string
4848 Server string
You can’t perform that action at this time.
0 commit comments