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
AgentConsulClient.agentServiceRegister send a http request with json body,but the content-type is text/plain; charset=UTF-8 rather than application/json
The text was updated successfully, but these errors were encountered:
Thank you for your question.
From the code, it does seem that the program uses the Httpclient default MimeType, which we can change to application / json.
But I have a better idea, why can't we take this opportunity to change Httpclient to Retrofit?
AgentConsulClient.agentServiceRegister send a http request with json body,but the content-type is
text/plain; charset=UTF-8
rather thanapplication/json
The text was updated successfully, but these errors were encountered: