You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP GET requests allow for multiple parameters to be passed that share the same name. For example, the following GET call to the Twilio lookups API allows for the 'Type' parameter to be specified multiple times.
Currently, when calling the setQueryParam or withQueryParams methods on a HyperRequest, the query parameters are stored in a structure, which means multiple parameters with the same name will simply overwrite the previous value.
Instead, parameters should be stored to allow multiple parameters with the same name, similar to how stacking multiple cfhttpparam tags would allow the same parameter name to be used (and passed) multiple times.
The text was updated successfully, but these errors were encountered:
I think that passing the values as an array will do what you are specifying. I'm not positive if that was only done for the form fields or if it also encompassed query params.
HTTP GET requests allow for multiple parameters to be passed that share the same name. For example, the following GET call to the Twilio lookups API allows for the 'Type' parameter to be specified multiple times.
https://lookups.twilio.com/v1/PhoneNumbers/13056772308?Type=carrier&Type=caller-name
Currently, when calling the
setQueryParam
orwithQueryParams
methods on a HyperRequest, the query parameters are stored in a structure, which means multiple parameters with the same name will simply overwrite the previous value.Instead, parameters should be stored to allow multiple parameters with the same name, similar to how stacking multiple cfhttpparam tags would allow the same parameter name to be used (and passed) multiple times.
The text was updated successfully, but these errors were encountered: