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 fix similar to #796 is needed for the JSONRPC client, as it does not set the Content-Length header by default, which can cause issues decoding the content at the server. In my case, it's not even a 3rd party service - it's another go-kit JSONRPC service behind a load balancer.
set content-length by default. This could be accomplished with a single line: req.ContentLength = int64(b.Len()) immediately after the json is loaded into the request body
set content-length by hand in a before RequestFunc
Please advise on the preferred path, and if it's solution 1 or 2, I'd be happy to offer a PR.
The text was updated successfully, but these errors were encountered:
A fix similar to #796 is needed for the JSONRPC client, as it does not set the Content-Length header by default, which can cause issues decoding the content at the server. In my case, it's not even a 3rd party service - it's another go-kit JSONRPC service behind a load balancer.
I see three possible solutions:
req.ContentLength = int64(b.Len())
immediately after the json is loaded into the request bodyPlease advise on the preferred path, and if it's solution 1 or 2, I'd be happy to offer a PR.
The text was updated successfully, but these errors were encountered: