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

Content-Type on API #82

Open
BrianEstrada opened this issue Aug 20, 2021 · 1 comment
Open

Content-Type on API #82

BrianEstrada opened this issue Aug 20, 2021 · 1 comment

Comments

@BrianEstrada
Copy link

Hello I'm in the process of integrating your api into our platform but i've ran into an issue where the Go-E api doesn't return Content-Type in the headers for the response my application expects to see the following application/json value for json bodies

Any chance that you could return that value when sending JSON?

@0xFEEDC0DE64
Copy link
Contributor

Hi, I guess we shouldn't change this in older hw1 and hw2 models, as many http clients tend to start parsing the json if the content type also says json. Right now it is plain text and every implemention does a json parse on the response. when switching to content type json, json parsing the already parsed json would fail and break any existing installation.

hardware-v3 always sent content type json so I guess you have a hardware v1 or v2?

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

No branches or pull requests

3 participants