about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-20 23:53:08 -0700
committerEric Wong <normalperson@yhbt.net>2009-03-21 01:46:12 -0700
commitff6b50fdf49f47befd22d2ad779f01d69c1f4570 (patch)
tree1e816c7f9c7478774b34d5bfad3ad2d635a21ae3
parentd4ad97e9048ee13b2b444ed4cd10439b5fedfb61 (diff)
downloadunicorn-ff6b50fdf49f47befd22d2ad779f01d69c1f4570.tar.gz
It's a CGI-ism and is not in the Rack spec, so don't bother.
-rw-r--r--ext/unicorn/http11/http11.c5
-rw-r--r--test/unit/test_http_parser.rb3
2 files changed, 1 insertions, 7 deletions
diff --git a/ext/unicorn/http11/http11.c b/ext/unicorn/http11/http11.c
index d5c364a..ec6b8d9 100644
--- a/ext/unicorn/http11/http11.c
+++ b/ext/unicorn/http11/http11.c
@@ -33,8 +33,6 @@ static VALUE global_request_path;
 static VALUE global_content_type;
 static VALUE global_http_content_type;
 static VALUE global_http_body;
-static VALUE global_gateway_interface;
-static VALUE global_gateway_interface_value;
 static VALUE global_server_name;
 static VALUE global_server_port;
 static VALUE global_server_protocol;
@@ -289,7 +287,6 @@ static void header_done(void *data, const char *at, size_t length)
     rb_hash_aset(req, global_content_type, ctype);
   }
 
-  rb_hash_aset(req, global_gateway_interface, global_gateway_interface_value);
   if((temp = rb_hash_aref(req, global_http_host)) != Qnil) {
     colon = memchr(RSTRING_PTR(temp), ':', RSTRING_LEN(temp));
     if(colon != NULL) {
@@ -501,8 +498,6 @@ void Init_http11()
   DEF_GLOBAL(http_body, "HTTP_BODY");
   DEF_GLOBAL(content_type, "CONTENT_TYPE");
   DEF_GLOBAL(http_content_type, "HTTP_CONTENT_TYPE");
-  DEF_GLOBAL(gateway_interface, "GATEWAY_INTERFACE");
-  DEF_GLOBAL(gateway_interface_value, "CGI/1.2");
   DEF_GLOBAL(server_name, "SERVER_NAME");
   DEF_GLOBAL(server_port, "SERVER_PORT");
   DEF_GLOBAL(server_protocol, "SERVER_PROTOCOL");
diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb
index ca1cd01..fc75990 100644
--- a/test/unit/test_http_parser.rb
+++ b/test/unit/test_http_parser.rb
@@ -25,11 +25,10 @@ class HttpParserTest < Test::Unit::TestCase
     assert_equal '/', req['REQUEST_PATH']
     assert_equal 'HTTP/1.1', req['HTTP_VERSION']
     assert_equal '/', req['REQUEST_URI']
-    assert_equal 'CGI/1.2', req['GATEWAY_INTERFACE']
     assert_equal 'GET', req['REQUEST_METHOD']    
     assert_nil req['FRAGMENT']
     assert_nil req['QUERY_STRING']
-    
+
     parser.reset
     assert parser.nread == 0, "Number read after reset should be 0"
   end