diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-02 18:29:58 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-02 18:29:58 -0700 |
commit | 3bc7000a34c8e1788a5951381c7007f617233da2 (patch) | |
tree | 95b7ae2f08cc7d964873ffc838412fd7bbc4abda /lib/clogger.rb | |
parent | 41e3dcf47d8ee855747681b80dab1c3b9d6bc457 (diff) | |
download | clogger-3bc7000a34c8e1788a5951381c7007f617233da2.tar.gz |
Since Rack doesn't allow the HTTP_CONTENT_{LENGTH,TYPE} headers, alias attempts to use those to the non-"HTTP_"-prefixed equivalents to avoid confusion on the user side (nginx also does this).
Diffstat (limited to 'lib/clogger.rb')
-rw-r--r-- | lib/clogger.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/clogger.rb b/lib/clogger.rb index 52f2723..fb25e1e 100644 --- a/lib/clogger.rb +++ b/lib/clogger.rb @@ -19,6 +19,8 @@ class Clogger '$time_local' => '$time_local{%d/%b/%Y:%H:%M:%S %z}', '$msec' => '$time{3}', '$usec' => '$time{6}', + '$http_content_length' => '$content_length', + '$http_content_type' => '$content_type', } SPECIAL_VARS = { |