I'm having a call from a frontend app which serializes arrays by using duplicate keys:
queryString.stringify({foo: [1, 2, 3]});
//=> 'foo=1&foo=2&foo=3'
and generates an url like:
https://endpoint?format=json&Status=Active&Status=Disabled&Status=Test
The backend is in Go and uses: https://github.com/emicklei/go-restful
How can I resolve the duplicated parameters in URL? Right now I can only get the last value.
The go code I've tried:
req.QueryParameter("CircuitStatus")
logger.Log.Debug().Msgf("CircuitStatus %v", CircuitStatus)
The logs:
{"level":"debug","time":"2019-05-13T11:43:47+03:00","message":"CircuitStatus Test"}