Comparing version 0.5.1 to 0.5.2
@@ -90,3 +90,4 @@ var http = require('http'); | ||
var next = c || b; | ||
var params = request.params = pattern(request.url); | ||
var index = request.url.indexOf('?'); | ||
var params = request.params = pattern(index === -1 ? request.url : request.url.substring(0, index)); | ||
@@ -93,0 +94,0 @@ if (!params) { |
{ | ||
"name":"router", | ||
"version":"0.5.1", | ||
"version":"0.5.2", | ||
"description":"A lean and mean web router", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
9109
238