Skip to content
Commit d3b6c5a7 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Carles Cufí
Browse files

net: coap: return -EPERM for a resource without requested method



When walking through the coap resources in coap_handle_request, return
-EPERM if a resource exists but does not have the request method. This
allows the caller to catch the error and return a 4.05 message.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 9e8bb610
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment