From e5acc81487ab7d2c0543c6466ee3a6d924f45473 Mon Sep 17 00:00:00 2001 From: Nathan Reckart Date: Thu, 23 Jul 2009 15:44:49 -0400 Subject: [PATCH] Fixed a bug that would produce the following error: Dispatcher failed to catch: undefined method `read' for class `FCGI::Stream' (NameError) --- lib/rack/handler/fastcgi.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rack/handler/fastcgi.rb b/lib/rack/handler/fastcgi.rb index 11e1fca..83cbd83 100644 --- a/lib/rack/handler/fastcgi.rb +++ b/lib/rack/handler/fastcgi.rb @@ -4,13 +4,13 @@ require 'rack/content_length' require 'rack/rewindable_input' class FCGI::Stream - alias _rack_read_without_buffer read - def read(n, buffer=nil) buf = _rack_read_without_buffer n buffer.replace(buf.to_s) if buffer buf end + + alias _rack_read_without_buffer read end module Rack -- 1.6.1.2