Skip to content

Commit 79ce4c4

Browse files
Handle trailing slash.
1 parent 9db43f5 commit 79ce4c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test.new/server.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def self.get_or_post(url, &block)
6262
redirect to('/test/')
6363
end
6464

65+
get '/test/:names/' do
66+
redirect to("/test/#{params[:names]}")
67+
end
68+
6569
get '/test/:names?' do
6670
names = params[:names]
6771
@suites = names.nil? ? SUITES : names.split(/,/).uniq

0 commit comments

Comments
 (0)