Permalink
Browse files

Update lib/rack/commonlogger.rb

  • Loading branch information...
1 parent 70e43e4 commit 140006be537f18fdf0b6f2a505e9f7151d1e5e98 @mpereira committed May 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rack/commonlogger.rb
View
@@ -29,6 +29,8 @@ def log(env, status, header, began_at)
now = Time.now
length = extract_content_length(header)
request = Rack::Request.new(env)
+
+ request.body.rewind
logger = @logger || env['rack.errors']
logger.write FORMAT % [

0 comments on commit 140006b

Please sign in to comment.