about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-06 12:03:09 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-06 13:32:04 -0700
commitc4eca8765e9aaf0d2736e764770d72f407affc16 (patch)
tree9c6119625bdc789b8b1ff8ca187cc1ac5e1a76f1
parent162110a29c6b3f4e3698151d83d998f24ed3768a (diff)
downloadclogger-c4eca8765e9aaf0d2736e764770d72f407affc16.tar.gz
This is to remain compatible with Rack if it relaxes
Rack::Lint to allow subclasses.
-rw-r--r--ext/clogger_ext/clogger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index 7813c8c..f935c11 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -714,6 +714,8 @@ static VALUE clogger_call(VALUE self, VALUE env)
         struct clogger *c = clogger_get(self);
         VALUE rv;
 
+        env = rb_check_convert_type(env, T_HASH, "Hash", "to_hash");
+
         if (c->wrap_body) {
                 if (c->reentrant < 0) {
                         VALUE tmp = rb_hash_aref(env, g_rack_multithread);