Skip to content

Cannot find a way to set a HTTP status code #6

@NDuggan

Description

@NDuggan

As a quick monkey patch @alexellis and I have amended my local index.rb to do the following:

get '/*' do
  res, res_headers, status_code = handler.run request.body, request.env

  headers = res_headers

  status status_code
  return res
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions