I ran into an issue where I needed to send arrays in query strings but encoded in a different style than is common in PHP. Example: first=value&arr=foo+bar&arr=baz.
However, since Unirest is rebuilding the Url before sending the request, the query string is rewritten and only one of the values of the array "arr" is kept.
I am attaching the line which seems to be the cause of this issue.
I ran into an issue where I needed to send arrays in query strings but encoded in a different style than is common in PHP. Example:
first=value&arr=foo+bar&arr=baz
.However, since Unirest is rebuilding the Url before sending the request, the query string is rewritten and only one of the values of the array "arr" is kept.
I am attaching the line which seems to be the cause of this issue.
https://github.com/Kong/unirest-php/blob/14aa9aa6919e4b70c59cd20722ac113c0ffeb45b/src/Unirest/Request.php#L555
Is there a workaround or a fix for this?