mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-16 21:14:55 +03:00
bugfix: accept empty request URIs
This commit is contained in:
1 parent
a360c4633e
commit
d7f5527003
1 file changed
+1
-1
@@ -157,7 +157,7 @@ coap_get_request_uri(coap_pdu_t *pdu, coap_uri_t *result) {
|
||||
if ((opt = coap_check_option(pdu, COAP_OPTION_URI_PATH)))
|
||||
COAP_SET_STR(&result->path, COAP_OPT_LENGTH(*opt), COAP_OPT_VALUE(*opt));
|
||||
|
||||
return result->scheme.length || result->na.length || result->path.length;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in new issue
Block a user