evanphx/puma — Issue #22: all Sinatra routes are accessed twice
Author: burningTyger
Created: 2011-12-13 16:58:32+00:00
State: open

Starting the samle Sinatra app

# myapp.rb
require 'sinatra'

get '/' do
'Hello world!'
end

will result in this:

% ruby sinatra.rb -s puma
Puma 0.9.1 starting...
* Min threads: 0, max threads: 16
* Listening on tcp://0.0.0.0:4567
== Sinatra/1.3.1 has taken the stage on 4567 for development with backup from Puma
127.0.0.1 - - [13/Dec/2011 17:55:19] "GET / HTTP/1.1" 200 12 0.0045
127.0.0.1 - - [13/Dec/2011 17:55:19] "GET / HTTP/1.1" 200 12 0.1636
127.0.0.1 - - [13/Dec/2011 17:55:20] "GET /favicon.ico HTTP/1.1" 404 447 0.0028
127.0.0.1 - - [13/Dec/2011 17:55:20] "GET /favicon.ico HTTP/1.1" 404 447 0.0030