ext: ensure headers#each in response is valid
commita6e410b7f85f22e6adbc55eb9dd3a494ca7200b2
authorEric Wong <normalperson@yhbt.net>
Mon, 31 Aug 2009 05:27:25 +0000 (30 22:27 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 1 Sep 2009 18:30:23 +0000 (1 11:30 -0700)
treed92ed989d4bbb7a5764d2bd7d3c9aba69158b7d2
parenta6978053b9e9f4eff3e54bda6b4aa0c06f707075
ext: ensure headers#each in response is valid

We're not Rack::Lint, but we still need to take steps to
avoid segfaulting if we host non-Rack::Lint-compliant
applications.

This also updates the pure variant to fail on bad applications,
too.
ext/clogger_ext/clogger.c
lib/clogger/pure.rb
test/test_clogger.rb