alias $http_content_{length,type} to $content_{length,type}
commit3bc7000a34c8e1788a5951381c7007f617233da2
authorEric Wong <normalperson@yhbt.net>
Thu, 3 Sep 2009 01:29:58 +0000 (2 18:29 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 3 Sep 2009 01:29:58 +0000 (2 18:29 -0700)
tree95b7ae2f08cc7d964873ffc838412fd7bbc4abda
parent41e3dcf47d8ee855747681b80dab1c3b9d6bc457
alias $http_content_{length,type} to $content_{length,type}

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).
lib/clogger.rb
test/test_clogger.rb