Skip to content

Commit

Permalink
pact gradle provider should support multiple query parameters with th…
Browse files Browse the repository at this point in the history
…e same name
  • Loading branch information
Ronald Holshausen committed Oct 2, 2014
1 parent 59df942 commit fed5caf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ class ProviderClient {
}

if (request.query().defined) {
// TODO: Accept multiple parameters with the same name
requestMap.query = request.query().get().split('&')*.split('=').inject([:]) { map, entry ->
map[entry[0]] = entry[1]
requestMap.query = request.query().get().split('&')*.split('=').inject([:]) { Map map, entry ->
map[entry[0]] = (map[entry[0]] ?: []) << entry[1]
map
}
}
Expand Down

0 comments on commit fed5caf

Please sign in to comment.