xmidt-org / wrp-go

go implementation of the Web Routing Protocol
Apache License 2.0
4 stars 7 forks source link

ParseLocator: sanitize locator components #210

Closed denopink closed 1 month ago

denopink commented 1 month ago

Currently, parsing the following string "event: /xmidt-test/2/config" yields an authority with the value .

We probably don't want this and should sanitize each locator component removing trailing and leading whitespaces.

Example: image

schmidtw commented 1 month ago

Please add a test case for this & fix it. That's a good find!