Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AgentConsulClient.agentServiceRegister use wrong content-type #241

Open
FunnyYish opened this issue Dec 14, 2022 · 1 comment
Open

AgentConsulClient.agentServiceRegister use wrong content-type #241

FunnyYish opened this issue Dec 14, 2022 · 1 comment

Comments

@FunnyYish
Copy link

AgentConsulClient.agentServiceRegister send a http request with json body,but the content-type is text/plain; charset=UTF-8 rather than application/json

@LimingSong-BJ
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants