support "$request_uri" as a log variable
commitc03045ecde0f3270d7458ba7ac0d76a25afc6fb2
authorEric Wong <normalperson@yhbt.net>
Sat, 29 Aug 2009 20:35:22 +0000 (29 13:35 -0700)
committerEric Wong <normalperson@yhbt.net>
Sat, 29 Aug 2009 20:35:22 +0000 (29 13:35 -0700)
tree7ce6c2d567fc013f0bcbbebef4b663c851b293d7
parent46a176a741ad4d19d81946b4232c0c26fb8bdbc8
support "$request_uri" as a log variable

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*).
ext/clogger_ext/clogger.c
lib/clogger.rb
lib/clogger/pure.rb
test/test_clogger.rb