added support for sinatra requests
Merge branch 'pr27'