mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-14 04:09:43 +03:00
Merge commit 'c1452c3707af4735ac0e06470c331b566f6e8898' from Thomas Poetsch
This commit is contained in:
commit
8157c0b43e
1 file changed
+5
@@ -140,6 +140,11 @@ print_wellknown(coap_context_t *context, unsigned char *buf, size_t *buflen,
|
||||
query_pattern.length =
|
||||
COAP_OPT_LENGTH(query_filter) - (resource_param.length + 1);
|
||||
|
||||
if ((query_pattern.s[0] == '/') && ((flags & MATCH_URI) == MATCH_URI)) {
|
||||
query_pattern.s++;
|
||||
query_pattern.length--;
|
||||
}
|
||||
|
||||
if (query_pattern.length &&
|
||||
query_pattern.s[query_pattern.length-1] == '*') {
|
||||
query_pattern.length--;
|
||||
|
||||
Reference in new issue
Block a user