At the moment, both for the Accept and the Content-Format option, a default value of 0 (text/plain; charset=utf-8) is set for requests. This is a bit at odds with the CoAP specification, which assumes no default value for these two options and can lead to unintended side effects if a server rejects certain accept values (but would allow requests with no accept option set).
Therefore, this PR proposes removing the default values from the creation methods, giving full control to the library users.
At the moment, both for the Accept and the Content-Format option, a default value of 0 (
text/plain; charset=utf-8
) is set for requests. This is a bit at odds with the CoAP specification, which assumes no default value for these two options and can lead to unintended side effects if a server rejects certain accept values (but would allow requests with no accept option set).Therefore, this PR proposes removing the default values from the creation methods, giving full control to the library users.