simulacre/sinatra-websocket — pull request #1 by ttencate (2012-06-05 12:24:13+00:00)
Title: Check if headers exist before inspecting them

This solves problems with Rack::Test, which does not pass the Connection header.