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

Set content-type to application/yang-data+json as specified in RFC8040 #29

Closed
sebastien-guay opened this issue Apr 12, 2023 · 2 comments

Comments

@sebastien-guay
Copy link

The current content-type in a POST response is set to application/json.

According to RFC8040 it must be application/yang-data+xml or application/yang-data+json. In our case it is application/yang-data+json.

See https://www.rfc-editor.org/rfc/rfc8040.html#section-3.2

@dhubler
Copy link
Collaborator

dhubler commented Apr 12, 2023

merged (with minor tweak) thanks!
Ideally squash commits before submitting. If I squash them, then it erases author tag.

@sebastien-guay
Copy link
Author

Thanks!

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