Open Spongman opened 1 year ago
RFC 7252, section 5.4.1, says:
Unrecognized options of class "critical" that occur in a Confirmable request MUST cause the return of a 4.02 (Bad Option) response.
Uri-Host is a critical option, as you can see in Table 4 in the said RFC.
The only critical options recognized by Anjay are Uri-Path, Uri-Query, Accept, and, if block transfer support is enabled at compile time, Block1 and Block2. There is no code that would handle Uri-Host in any way, so the library must reject requests that contain it, as per the RFC.
May I ask what is the server that sends the Uri-Host option? Is there any specific reason for it to do so?
I'm seeing this error when my server sends a
Uri-Host
option in aPUT
query to a connected Anjay client.I see no justification for this error in rfc7252.