plgd-dev / go-coap

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

mux: Root path handling improvement #506

Closed jkralik closed 10 months ago

jkralik commented 10 months ago

This modification ensures that the mux treats both "/" and an empty path ("") as requests to the root path. The reason behind this is the absence of the Uri-path option in CoAP requests in such instances.

Fixes #446

sonarcloud[bot] commented 10 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication