Fix failing test
This commit is contained in:
parent
91b9c3f92e
commit
1096c8fb39
@ -2,7 +2,6 @@
|
||||
package path
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@ -13,7 +12,7 @@ type Resolver struct{}
|
||||
|
||||
func (r *Resolver) Resolve(req *http.Request) (*resolver.Endpoint, error) {
|
||||
if req.URL.Path == "/" {
|
||||
return nil, errors.New("unknown name")
|
||||
return nil, resolver.ErrNotFound
|
||||
}
|
||||
parts := strings.Split(req.URL.Path[1:], "/")
|
||||
return &resolver.Endpoint{
|
||||
|
Loading…
Reference in New Issue
Block a user