plgd-dev / go-coap

Implementation of CoAP Server & Client in Go
https://coap.technology
Apache License 2.0
447 stars 116 forks source link

mux: filter for invalid root path pattern #498

Closed HRogge closed 1 year ago

HRogge commented 1 year ago

Mux router has trouble with root path matching because of the different semantics of empty path and "/" path. Add the already existing filter into all relevant router functions and add extend test cases to check all combinations.

jkralik commented 1 year ago

Thx for contribution :).