Skip to content
This repository was archived by the owner on Dec 7, 2018. It is now read-only.
This repository was 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

@a0s

Description

@a0s

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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions