xmidt-org / wrp-go

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

The Locator is truncating what is ignored based on `\` characters. #170

Closed schmidtw closed 3 months ago

schmidtw commented 3 months ago

For a Locator string: dns:foo.bar.com/service/ignored/really/really/ignored the Locator should look like:

l := Locator{
    Scheme:    SchemeDNS,
    Authority: "foo.bar.com",
    Service:   "service",
    Ignored:   "/ignored/really/really/ignored"
}

But I'm getting:

l := Locator{
    Scheme:    SchemeDNS,
    Authority: "foo.bar.com",
    Service:   "ignored",
    Ignored:   "/really"
}