diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-08-29 13:35:22 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-08-29 13:35:22 -0700 |
commit | c03045ecde0f3270d7458ba7ac0d76a25afc6fb2 (patch) | |
tree | 7ce6c2d567fc013f0bcbbebef4b663c851b293d7 /lib/clogger.rb | |
parent | 46a176a741ad4d19d81946b4232c0c26fb8bdbc8 (diff) | |
download | clogger-c03045ecde0f3270d7458ba7ac0d76a25afc6fb2.tar.gz |
This was documented in the README but never implemented. Some popular web servers set REQUEST_URI even though it's not required by Rack, so allow this variable to be used if possible. As a side effect, it is also less likely to be modified by certain handlers (*cough*Rails::Rack::Static*cough*).
Diffstat (limited to 'lib/clogger.rb')
-rw-r--r-- | lib/clogger.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/clogger.rb b/lib/clogger.rb index 0e4148e..8e881c2 100644 --- a/lib/clogger.rb +++ b/lib/clogger.rb @@ -29,6 +29,7 @@ class Clogger :response_length => 4, # like body_bytes_sent, except "-" instead of "0" :ip => 5, # HTTP_X_FORWARDED_FOR || REMOTE_ADDR || - :pid => 6, # getpid() + :request_uri => 7 } private |