[riot-notifications] [RIOT-OS/RIOT] sys/net/application_layer/nanocoap: Add path prefix option (#11098)

Leandro Lanzieri notifications at github.com
Mon Mar 4 17:26:00 CET 2019

> Now, wouldn't this implementation match "/path/to/resource" with "/path/to/re". If that is the case, then it is not a desired behaviour. A cheap way to fix it would be to require "/path/to/re" to end in a slash.

Yes, that behavior may not be wanted. So if requests to "/path/to/re" and requests to "/path/to/re/*" want to be matched then two coap resources could be registered: the first one with "/path/to/re" and exact match and the second one with "/path/to/re/" and subtree match.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190304/5057725a/attachment.html>

More information about the notifications mailing list