-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Milestone
Description
It's possible to create a request and configure query parameters:
let request = RestRequest(url: "http://localhost:8090/api/races")
request.queryItems = [
URLQueryItem(name: "first", value: "0"),
URLQueryItem(name: "size", value: "10")
]but then when you call request.responseObject { ... }, the query parameters get removed, because of this line:
This is really confusing, as I didn't even notice responseObject had a queryItems parameter, with a default value of nil.
I assume this is a bug and the method's parameter shouldn't overwrite the queryItems property when that parameter is nil?
Reactions are currently unavailable