diff options
Diffstat (limited to 'lib/clogger.rb')
-rw-r--r-- | lib/clogger.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/clogger.rb b/lib/clogger.rb index ba047f5..a827632 100644 --- a/lib/clogger.rb +++ b/lib/clogger.rb @@ -36,6 +36,15 @@ class Clogger :request_uri => 7 } + # proxy class to avoid clobbering the +to_path+ optimization when + # using static files + class ToPath < Struct.new(:clogger) + def each(&block); clogger.each(&block); end + def close; clogger.close; end + + # to_path is defined in Clogger::Pure or the C extension + end + private CGI_ENV = Regexp.new('\A\$(' << |