diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-18 20:20:43 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-19 23:56:22 -0800 |
commit | f32cac1cc89aed460fae99689ae7e5dd806f7682 (patch) | |
tree | 81a8c24753d046baafad78afb9f5901ad706745b /ext/http11/http11.c | |
parent | 82d76cd654dfed2d1c4233f9a77c3a901c510133 (diff) | |
download | unicorn-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/http11/http11.c')
-rw-r--r-- | ext/http11/http11.c | 4 |
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); |