Skip to content
New issue

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

Null res$body crashes #138

Closed
trestletech opened this issue Jul 18, 2017 · 0 comments
Closed

Null res$body crashes #138

trestletech opened this issue Jul 18, 2017 · 0 comments
Labels
type: bug Maintainers have validated that it is a real bug in the project code
Milestone

Comments

@trestletech
Copy link
Contributor

#' @get /
function(res){
  browser()
  res$setHeader("Location", "/redir")
  res$status <- 307
#  res$body <- "hi"
  res
}

with the res$body commented out crashes the server since httpuv doesn't know how to serialize a request with no body. We should ensure that all requests have a body.

@trestletech trestletech added the type: bug Maintainers have validated that it is a real bug in the project code label Jul 18, 2017
trestletech added a commit that referenced this issue Jul 18, 2017
@trestletech trestletech added this to the 0.4.0 milestone Jul 18, 2017
trestletech added a commit that referenced this issue Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Maintainers have validated that it is a real bug in the project code
Projects
None yet
Development

No branches or pull requests

1 participant