Skip to content

Commit

Permalink
Log a warning if Rack application returns nil body.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin authored and macournoyer committed Aug 2, 2008
1 parent 7768691 commit 278a99a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/thin/connection.rb
Expand Up @@ -74,7 +74,8 @@ def post_process(result)
set_content_length(result) if need_content_length?(result)

@response.status, @response.headers, @response.body = result


log "!! Rack application returned nil body. Probably you wanted it to be an empty string?" if @response.body.nil?
# Make the response persistent if requested by the client
@response.persistent! if @request.persistent?

Expand Down

0 comments on commit 278a99a

Please sign in to comment.