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

Changed MediaType from byte to int to handle extended vendor type #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bocajim
Copy link

@bocajim bocajim commented Feb 23, 2017

IETF is specifying MediaType codes beyond 255:
https://www.iana.org/assignments/core-parameters/core-parameters.xhtml

As such, the type of the field needs to change to something larger and able to handle the other protocols (such as the OMA-LWM2M vendor codes).

@dubek
Copy link
Collaborator

dubek commented Feb 23, 2017

Thanks you @bocajim for the contribution; looks code.

Can you please add a short unit tests that encodes and decodes a message with a Content-Type bigger than 255? (just pick one of those OMA-LWM2M types)

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

Successfully merging this pull request may close these issues.

3 participants