Closed csosto-pk closed 5 years ago
I am not sure we need to return only 62.
RFC5272 says
The Content-Format code "ct" attribute provides a hint about the Content-Formats this resource returns. Note that this is only a hint, and it does not override the Content-Format Option of a CoAP response obtained by actually requesting the representation of the resource. [...] The Content-Format code attribute MAY include a space-separated sequence of Content-Format codes, indicating that multiple content-formats are available.
So ct="62 280 284 281 TBD287" could hint to the client that all the following formats are supported for the multipart server-side keygen.
Peter removed them in commit 6d12b50.
I think we still can keep them there. RFC5272 says
The Content-Format code "ct" attribute provides a hint about the Content-Formats this resource returns. Note that this is only a hint, and it does not override the Content-Format Option of a CoAP response obtained by actually requesting the representation of the resource. [...] The Content-Format code attribute MAY include a space-separated sequence of Content-Format codes, indicating that multiple content-formats are available.
So ct="62 280 284 281 TBD287" could hint to the client that all the following formats are supported for the multipart server-side keygen.
We need to clarify that with Klaus et al.
If we resolved the CT issue by allocating 4 CT for the 2x2 combinations, then we would list those for CT here instead of 62 + contents.
62 is compulsory. The others are put in as hints if they are supported. If we end up defining four new multipart content-format combinations then these will go in the ct="...".
Sent an email to ask Klaus if he agrees.
According to mailing list discussions, this value can only be 62... Need to fix.
Fixed. Only kept "ct=62" in the resource discovery response.
Klaus asked