Commits

Michael Granger committed 8721f2a

Set the body on Mongrel2::Request if constructed with an IO, too.

  • Participants
  • Parent commits 349c004

Comments (0)

Files changed (1)

lib/mongrel2/request.rb

 		elsif !body.respond_to?( :read )
 			self.log.info "Wrapping non-IO (%p) body in a StringIO" % [ body.class ]
 			@body = StringIO.new( body, 'r+b' )
+		else
+			@body = body
 		end
 
 		@response  = nil