Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Add request.query_string to example of Rack proxy as recommended by p…
Browse files Browse the repository at this point in the history
…angratz
  • Loading branch information
Devin Torres committed Jun 14, 2012
1 parent c16dc24 commit b8de726
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ember/templates/app/config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ use Rake::Pipeline::Middleware, 'Assetfile'
# require 'rack/streaming_proxy'
# use Rack::StreamingProxy do |request|
# if request.path.start_with?('/proxy')
# "http://127.0.0.1:8080#{request.path}"
# path = request.path
# if request.query_string
# path = "#{path}?#{request.query_string}"
# end
# "http://127.0.0.1:8080#{path}"
# end
# end

Expand Down

0 comments on commit b8de726

Please sign in to comment.