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
A while back there was a fix to include query parameters in POST requests too (#12). There is a small inconsistency with the API now, in that Session.Post accepts a payload, but no params, meaning that I cannot - easily - set query parameters as for Get, but rather have to manually construct a request to add the parameters:
session.Get(url, ¶ms, res, nil)
versus
req:=&napping.Request{
Method: "POST",
Url: url,
Params: ¶ms, // <- setting this one is missing from the APIResult: res,
Error: nil,
}
rep, err:=session.Send(req)
// ...
Cheers,
Peter
The text was updated successfully, but these errors were encountered:
Hi,
A while back there was a fix to include query parameters in POST requests too (#12). There is a small inconsistency with the API now, in that Session.Post accepts a payload, but no params, meaning that I cannot - easily - set query parameters as for Get, but rather have to manually construct a request to add the parameters:
versus
Cheers,
Peter
The text was updated successfully, but these errors were encountered: