Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Grape on reel-rack return nothing when "Connection: close" header received #12

Open
a0s opened this issue Mar 20, 2014 · 0 comments
Open

Comments

@a0s
Copy link

a0s commented Mar 20, 2014

I have test server

require 'grape'

class APIv2 < Grape::API
  format :json
  default_format :json

  get :test do
    puts 'request!'
    {:result => 'OK'}
  end
end

run APIv2
bundle exec reel-rack test_server.ru

Testing it with curl

$ curl "http://localhost:3000/test" -H "Connection: close"
curl: (18) transfer closed with outstanding read data remaining
$ curl "http://localhost:3000/test"
{"result":"OK"}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant