First off, thanks for this awesome library!
I want to pass the following dictionary as get parameter:
["param1": 1, "param2": ["a"]]
When passing only non-array values, such as ["param1": 1], it works just fine. But when I pass an array of strings, the parameters are converted to a url as follows:
?param2%5B%5D=a&page=1¶m1=1
...manually making this more legible:
...whereas it obviously should be:
(note the brackets after param2).
A similar thing happens when trying to code the string array myself by escaping quote chars and then manually adding the parameters in the URL directly:
let urlAppendix = "?param2=[\"\(a)\"]¶m1=1"
The response will actually not have any data at all: the URL is nil, the text & data is empty...
Any idea why this is not working properly? Do I need to do anything differently?
First off, thanks for this awesome library!
I want to pass the following dictionary as get parameter:
When passing only non-array values, such as
["param1": 1], it works just fine. But when I pass an array of strings, the parameters are converted to a url as follows:...manually making this more legible:
...whereas it obviously should be:
(note the brackets after
param2).A similar thing happens when trying to code the string array myself by escaping quote chars and then manually adding the parameters in the URL directly:
The response will actually not have any data at all: the URL is nil, the text & data is empty...
Any idea why this is not working properly? Do I need to do anything differently?