We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems like async_sinatra responds with a body when a HEAD request is made, where regular Sinatra works fine.
require 'sinatra/async' class TestServer < Sinatra::Base register Sinatra::Async aget '/' do body('hello') end end TestServer.run!
>ruby -e "require 'socket'; s=TCPSocket.open('localhost',4567); s.write(\"HEAD / HTTP/1.0\r\n\r\n\"); while((d=s.recv(1)).length>0) do print(d); end" HTTP/1.1 200 OK Content-Length: 5 Connection: close Server: thin 1.2.11 codename Bat-Shit Crazy hello
The text was updated successfully, but these errors were encountered:
Fixed in master, thank you.
Sorry, something went wrong.
No branches or pull requests
Seems like async_sinatra responds with a body when a HEAD request is made, where regular Sinatra works fine.
The text was updated successfully, but these errors were encountered: