From d048a9a8cc757d6b0078a47fa472eaefaa82b700 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Apr 2009 11:14:40 -0700 Subject: http11: remove unused variables/elements We don't do anything special with content length in the parser other than forcing the headers without the "HTTP_" prefix for Rack-compliance. --- ext/unicorn/http11/http11.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ext/unicorn/http11/http11.c') diff --git a/ext/unicorn/http11/http11.c b/ext/unicorn/http11/http11.c index 893f710..42dcf99 100644 --- a/ext/unicorn/http11/http11.c +++ b/ext/unicorn/http11/http11.c @@ -30,10 +30,8 @@ static VALUE global_request_uri; static VALUE global_fragment; static VALUE global_query_string; static VALUE global_http_version; -static VALUE global_content_length; static VALUE global_request_path; static VALUE global_path_info; -static VALUE global_content_type; static VALUE global_server_name; static VALUE global_server_port; static VALUE global_server_protocol; @@ -403,8 +401,6 @@ void Init_http11() DEF_GLOBAL(http_version, "HTTP_VERSION"); DEF_GLOBAL(request_path, "REQUEST_PATH"); DEF_GLOBAL(path_info, "PATH_INFO"); - DEF_GLOBAL(content_length, "CONTENT_LENGTH"); - DEF_GLOBAL(content_type, "CONTENT_TYPE"); DEF_GLOBAL(server_name, "SERVER_NAME"); DEF_GLOBAL(server_port, "SERVER_PORT"); DEF_GLOBAL(server_protocol, "SERVER_PROTOCOL"); -- cgit v1.2.3-24-ge0c7