about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-04-21 11:06:32 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-04-21 11:06:32 -0700
commitdf029647ded0602b474912cdf2d9d8c28f3f9fca (patch)
tree92bb22a5810842f0b542ca9e7a84299f1ce0a63a
parentClean the Path from useless /. (diff)
downloadpath-router-df029647ded0602b474912cdf2d9d8c28f3f9fca.tar.gz
The test was inversed.
-rw-r--r--route.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/route.go b/route.go
index 3ba3548..1950307 100644
--- a/route.go
+++ b/route.go
@@ -40,7 +40,7 @@ func (self *Route) Match(request Request) *Match {
 
 	components := strings.Split(request.Request.URL.Path, "/")
 
-	if len(components) > self.Length {
+	if len(components) < self.Length {
 		return nil
 	}