Merge commit 'c1452c3707af4735ac0e06470c331b566f6e8898' from Thomas Poetsch

This commit is contained in:
Olaf Bergmann committed 2012-12-02 16:34:12 +01:00
commit 8157c0b43e
1 file changed
+5
+5
View File
@@ -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--;