Skip to content
Browse files

do not concatinate params. fixes #452, fixes #453.

Conflicts:

	lib/sinatra/base.rb
  • Loading branch information...
1 parent 028c3ae commit ff8103d45b41f043d742db7eb30aa47c6bfdd605 @rkh rkh committed Mar 7, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/routing_test.rb
View
6 test/routing_test.rb
@@ -227,6 +227,12 @@ class RoutingTest < Test::Unit::TestCase
assert_equal "format=", body
end
+ it 'does not concatinate params with the same name' do
+ mock_app { get('/:foo') { params[:foo] } }
+ get '/a?foo=b'
+ assert_body 'a'
+ end
+
it "supports single splat params like /*" do
mock_app {
get '/*' do

0 comments on commit ff8103d

Please sign in to comment.
Something went wrong with that request. Please try again.