-
Notifications
You must be signed in to change notification settings - Fork 321
Open
Description
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.
unirest-php/src/Unirest/Request.php
Line 555 in 14aa9aa
| $query = '?' . http_build_query(self::getArrayFromQuerystring($query)); |
Is there a workaround or a fix for this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels