diff --git a/lib/serviceworker/router.rb b/lib/serviceworker/router.rb index f9a6f16..e4e42ca 100644 --- a/lib/serviceworker/router.rb +++ b/lib/serviceworker/router.rb @@ -51,6 +51,7 @@ def any? def match_route(env) path = env[PATH_INFO] + path = '/' if path == '' @routes.lazy.map { |route| route.match(path) }.detect(&:itself) end end