plgd-dev / go-coap

Implementation of CoAP Server & Client in Go
https://coap.technology
Apache License 2.0
447 stars 116 forks source link

Media type strings do not match IANA registry #492

Closed hasheddan closed 1 year ago

hasheddan commented 1 year ago

Similar to #484, many of the media types do not match their representation in the IANA registry, which can make it difficult to handle them generically. Most of the offenders are due to the inclusion of the RFC suffix.

hasheddan commented 1 year ago

Happy to make the necessary updates here, @jkralik are you open to moving towards matching the IANA registry?

hasheddan commented 1 year ago

@Danielius1922 I am happy to work on this if you want to assign me 🙂

Danielius1922 commented 1 year ago

Sounds alright to me, I've checked our repositories and the only place we use it is in a test. But there might be some hidden code I don't have access to, so we must wait for @jkralik to say if it is alright.

Danielius1922 commented 1 year ago

@hasheddan I've talked with @jkralik about this, and we think can remove the RFC suffixes.

hasheddan commented 1 year ago

@Danielius1922 thanks! Will do shortly 👍🏻