about summary refs log tree commit homepage
path: root/ext/http11/http11.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http11/http11.c')
-rw-r--r--ext/http11/http11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/http11/http11.c b/ext/http11/http11.c
index 9e2cc6f..ffdbee3 100644
--- a/ext/http11/http11.c
+++ b/ext/http11/http11.c
@@ -135,7 +135,7 @@ void header_done(void *data, const char *at, size_t length)
 
   ctype = rb_hash_aref(req, global_http_content_type);
   if(ctype != Qnil) {
-    rb_hash_aset(req, global_content_type, Qnil);
+    rb_hash_aset(req, global_content_type, ctype);
   }
 
   rb_hash_aset(req, global_gateway_interface, global_gateway_interface_value);