We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57c31fb commit 4219de6Copy full SHA for 4219de6
redir.rb
@@ -1,5 +1,6 @@
1
class Redir < Sinatra::Base
2
get '/' do
3
- redirect "http://localhost:3000"
+ querystring = params.map{|k,v| "#{CGI.escape(k)}=#{CGI.escape(v)}"}.join("&")
4
+ redirect "http://localhost:3000?#{querystring}"
5
end
6
0 commit comments