about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-18 20:20:43 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-19 23:56:22 -0800
commitf32cac1cc89aed460fae99689ae7e5dd806f7682 (patch)
tree81a8c24753d046baafad78afb9f5901ad706745b /ext
parent82d76cd654dfed2d1c4233f9a77c3a901c510133 (diff)
downloadunicorn-f32cac1cc89aed460fae99689ae7e5dd806f7682.tar.gz
It was mistakenly set to false before, which breaks Rack::Lint.
As the Rack SPEC doesn't require it, don't bother setting it at
all and save a few bytes of memory.
Diffstat (limited to 'ext')
-rw-r--r--ext/http11/http11.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/http11/http11.c b/ext/http11/http11.c
index 73ec83a..ee5704b 100644
--- a/ext/http11/http11.c
+++ b/ext/http11/http11.c
@@ -41,8 +41,6 @@ static VALUE global_server_port;
 static VALUE global_server_protocol;
 static VALUE global_server_protocol_value;
 static VALUE global_http_host;
-static VALUE global_unicorn_version;
-static VALUE global_server_software;
 static VALUE global_port_80;
 
 #define TRIE_INCREASE 30
@@ -309,7 +307,6 @@ void header_done(void *data, const char *at, size_t length)
   /* grab the initial body and stuff it into the hash */
   rb_hash_aset(req, global_http_body, rb_str_new(at, length));
   rb_hash_aset(req, global_server_protocol, global_server_protocol_value);
-  rb_hash_aset(req, global_server_software, global_unicorn_version);
 }
 
 
@@ -509,7 +506,6 @@ void Init_http11()
   DEF_GLOBAL(server_protocol, "SERVER_PROTOCOL");
   DEF_GLOBAL(server_protocol_value, "HTTP/1.1");
   DEF_GLOBAL(http_host, "HTTP_HOST");
-  DEF_GLOBAL(server_software, "SERVER_SOFTWARE");
   DEF_GLOBAL(port_80, "80");
 
   eHttpParserError = rb_define_class_under(mUnicorn, "HttpParserError", rb_eIOError);