title: Why doesn't redirect cause infinite loop?
body: <pre><code>.
  ├── public
  │   └── imgs
  │       └── alien1.png
  └── routes.rb
  
  
  
  #routes.rb
  require 'sinatra'
  
  get "/imgs/*.*" do
    puts "****"
    redirect to('/imgs/alien1.png')
  end
  </code></pre>
  
  <p>When I enter the following url in my browser:</p>
  
  <pre><code>http://localhost:4567/imgs/blah.jpg
  </code></pre>
  
  <p>that matches the only route in routes.rb, so the redirect executes, and alien1.png is displayed in my browser.  But why doesn't the redirect match the route again?</p>
  
  <p>If I do this:</p>
  
  <pre><code>require 'sinatra'
  
  get "/dog" do
    'woof woof'
  end
  
  get "/imgs/*.*" do
    puts "***"
    redirect to("/dog")
  end
  </code></pre>
  
  <p>...the redirect hits the /dog route and its block executes displaying 'woof woof' in my browser.</p>