summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zero/router.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zero/router.rb b/lib/zero/router.rb
index befb171..9ec3b4b 100644
--- a/lib/zero/router.rb
+++ b/lib/zero/router.rb
@@ -52,7 +52,7 @@ module Zero
match = route.match(request.path)
if match
match.names.each_index do |i|
- request.update_param(match.names[i], match.captures[i])
+ request.params[match.names[i]] = match.captures[i]
end
return target.call(request.env)
end