[cli] fix CoAP response code for POST 2.03 -> 2.04 per RFC 7252 (#9971)

This commit is contained in:
Esko Dijk
2024-03-27 10:54:02 -07:00
committed by GitHub
parent 7d4a1f8c8f
commit 7271b199d3
+1 -1
View File
@@ -949,7 +949,7 @@ void Coap::HandleRequest(otMessage *aMessage, const otMessageInfo *aMessageInfo)
}
else
{
responseCode = OT_COAP_CODE_VALID;
responseCode = OT_COAP_CODE_CHANGED;
}
responseMessage = otCoapNewMessage(GetInstancePtr(), nullptr);