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
I need to work with an API that provides JSON-RPC, which returns "Content-Type: application/json-rpc".
But this API client cannot automatically unmarshal a response with such a Content-Type.
This problem is similar to #134, #171, #92.
I think there are two solutions:
rework the regular expression jsonCheck again;
or make some parameter (ForceJSONUnmarshaling bool or ForcedResponceContentType string) that will force the Unmarshaling response into the correct format, regardless of the response Content-Type.
The text was updated successfully, but these errors were encountered:
jeevatkm
changed the title
Unmarshaling does not work with Content-Type application/json-rpc
Add Content-Type application/json-rpc into Auto Unmarshaling support
Dec 19, 2018
I need to work with an API that provides JSON-RPC, which returns "Content-Type: application/json-rpc".
But this API client cannot automatically unmarshal a response with such a Content-Type.
This problem is similar to #134, #171, #92.
I think there are two solutions:
jsonCheck
again;The text was updated successfully, but these errors were encountered: