<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,7 +9,7 @@ export REQUEST_METHOD=&quot;GET&quot;
 export SERVER_NAME=&quot;localhost&quot;
 export SERVER_PORT=&quot;80&quot;
 export QUERY_STRING=&quot;&quot;
-export HTTP_VERSION=&quot;HTTP/1.1&quot;
+export SERVER_PROTOCOL=&quot;HTTP/1.1&quot;
 
 export REMOTE_HOST=&quot;127.0.0.1&quot;
 </diff>
      <filename>bin/cgi-test.sh</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@ CommonLogger.Context.prototype.forEach = function(block) {
         method      = this.env[&quot;REQUEST_METHOD&quot;],
         path        = (this.env[&quot;SCRIPT_NAME&quot;]||&quot;&quot;) + (this.env[&quot;PATH_INFO&quot;]||&quot;&quot;),
         query       = this.env[&quot;QUERY_STRING&quot;] ? &quot;?&quot;+this.env[&quot;QUERY_STRING&quot;] : &quot;&quot;,
-        version     = this.env[&quot;HTTP_VERSION&quot;],
+        version     = this.env[&quot;SERVER_PROTOCOL&quot;],
         status      = String(this.status).substring(0,3),
         size        = length === 0 ? &quot;-&quot; : length.toString(),
         duration    = now.getTime() - this.time.getTime();</diff>
      <filename>lib/jack/commonlogger.js</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,8 @@ exports.run = function(app, options) {
         env[&quot;SERVER_NAME&quot;]          = &quot;localhost&quot;;//String(request.getServerName() || &quot;&quot;);
         env[&quot;SERVER_PORT&quot;]          = &quot;&quot;;//String(request.getServerPort() || &quot;&quot;);
         env[&quot;QUERY_STRING&quot;]         = &quot;&quot;;//String(request.getQueryString() || &quot;&quot;);
-        env[&quot;HTTP_VERSION&quot;]         = &quot;HTTP/1.1&quot;;//String(request.getProtocol() || &quot;&quot;);
+        env[&quot;SERVER_PROTOCOL&quot;]      = &quot;HTTP/1.1&quot;;//String(request.getProtocol() || &quot;&quot;);
+        env[&quot;HTTP_VERSION&quot;]         = env[&quot;SERVER_PROTOCOL&quot;]; // legacy
 
         env[&quot;REMOTE_HOST&quot;]          = &quot;127.0.0.1&quot;;
         </diff>
      <filename>lib/jack/handler/fastcgi-rhino-jna.js</filename>
    </modified>
    <modified>
      <diff>@@ -70,7 +70,8 @@ var process = function(app, request, response) {
 
     env[&quot;REQUEST_METHOD&quot;]       = request.method || &quot;&quot;;
     env[&quot;QUERY_STRING&quot;]         = uri.query || request.queryString || &quot;&quot;;
-    env[&quot;HTTP_VERSION&quot;]         = [&quot;HTTP/&quot;, request.httpVersion || &quot;1.1&quot;].join(&quot;&quot;);
+    env[&quot;SERVER_PROTOCOL&quot;]      = [&quot;HTTP/&quot;, request.httpVersion || &quot;1.1&quot;].join(&quot;&quot;);
+    env[&quot;HTTP_VERSION&quot;]         = env[&quot;SERVER_PROTOCOL&quot;]; // legacy
 
     var cAddr, addr;
     //if (cAddr = request.getClientAddress())
@@ -104,7 +105,7 @@ var process = function(app, request, response) {
         print(key + &quot; : &quot; + response[key]);
     });
     // set the status
-    Log.debug(&quot;set the status&quot;, env[&quot;HTTP_VERSION&quot;], res.status, HTTP_STATUS_CODES[res.status]);
+    Log.debug(&quot;set the status&quot;, env[&quot;SERVER_PROTOCOL&quot;], res.status, HTTP_STATUS_CODES[res.status]);
     response.setStatusLine(request.httpVersion || &quot;1.1&quot;, res.status, HTTP_STATUS_CODES[res.status]);
 
     // check to see if X-Sendfile was used, remove the header</diff>
      <filename>lib/jack/handler/mozhttpd.js</filename>
    </modified>
    <modified>
      <diff>@@ -37,7 +37,8 @@ Servlet.process = function(app, request, response) {
     env[&quot;SERVER_NAME&quot;]          = String(request.getServerName() || &quot;&quot;);
     env[&quot;SERVER_PORT&quot;]          = String(request.getServerPort() || &quot;&quot;);
     env[&quot;QUERY_STRING&quot;]         = String(request.getQueryString() || &quot;&quot;);
-    env[&quot;HTTP_VERSION&quot;]         = String(request.getProtocol() || &quot;&quot;);
+    env[&quot;SERVER_PROTOCOL&quot;]      = String(request.getProtocol() || &quot;&quot;);
+    env[&quot;HTTP_VERSION&quot;]         = env[&quot;SERVER_PROTOCOL&quot;]; // legacy
     
     env[&quot;REMOTE_HOST&quot;]          = String(request.getRemoteHost() || &quot;&quot;);
         </diff>
      <filename>lib/jack/handler/servlet.js</filename>
    </modified>
    <modified>
      <diff>@@ -74,8 +74,10 @@ var process = function(app, request, shttpd) {
         if (env[&quot;PATH_INFO&quot;] === undefined)
             env[&quot;PATH_INFO&quot;] = env[&quot;REQUEST_URI&quot;];
             
-        if (env[&quot;HTTP_VERSION&quot;] === undefined)
-            env[&quot;HTTP_VERSION&quot;] = env[&quot;SERVER_PROTOCOL&quot;] || &quot;HTTP/1.1&quot;;
+        if (env[&quot;SERVER_PROTOCOL&quot;] === undefined)
+            env[&quot;SERVER_PROTOCOL&quot;] = &quot;HTTP/1.1&quot;;
+        
+        env[&quot;HTTP_VERSION&quot;] = env[&quot;SERVER_PROTOCOL&quot;]; // legacy
             
         if (env[&quot;CONTENT_LENGTH&quot;] === undefined)
             env[&quot;CONTENT_LENGTH&quot;] = &quot;0&quot;;</diff>
      <filename>lib/jack/handler/shttpd.js</filename>
    </modified>
    <modified>
      <diff>@@ -80,7 +80,8 @@ var process = function(app, request, response) {
     
     env[&quot;REQUEST_METHOD&quot;]       = String(request.getMethod() || &quot;&quot;);
     env[&quot;QUERY_STRING&quot;]         = uri.query || &quot;&quot;;
-    env[&quot;HTTP_VERSION&quot;]         = &quot;HTTP/&quot;+request.getMajor()+&quot;.&quot;+request.getMinor();
+    env[&quot;SERVER_PROTOCOL&quot;]      = &quot;HTTP/&quot;+request.getMajor()+&quot;.&quot;+request.getMinor();
+    env[&quot;HTTP_VERSION&quot;]         = env[&quot;SERVER_PROTOCOL&quot;]; // legacy
     
     var cAddr, addr;
     if (cAddr = request.getClientAddress())</diff>
      <filename>lib/jack/handler/simple.js</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ exports.run = function(app, request, response) {
     for (var key in request._headers)
         env[key] = request._headers[key];
 
-    env[&quot;HTTP_VERSION&quot;]         = env[&quot;SERVER_PROTOCOL&quot;];
+    env[&quot;HTTP_VERSION&quot;]         = env[&quot;SERVER_PROTOCOL&quot;]; // legacy
     
     env[&quot;jsgi.version&quot;]         = [0,2];
     env[&quot;jsgi.input&quot;]           = null; // FIXME</diff>
      <filename>lib/jack/handler/v8cgi.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>63b92ab5badbc784fe47af22aa3f171e8cc2e613</id>
    </parent>
  </parents>
  <author>
    <name>Tom Robinson</name>
    <email>tom@280north.com</email>
  </author>
  <url>http://github.com/tlrobinson/jack/commit/1974d3ca9ee309ce5007f8910737db20fafe3346</url>
  <id>1974d3ca9ee309ce5007f8910737db20fafe3346</id>
  <committed-date>2009-10-01T01:27:40-07:00</committed-date>
  <authored-date>2009-10-01T01:27:40-07:00</authored-date>
  <message>Change HTTP_VERSION to SERVER_PROTOCOL (conflicts with &quot;Version&quot; header)</message>
  <tree>a1fc917cfc9cc35e95e9aa8f4e341d7662c19aac</tree>
  <committer>
    <name>Tom Robinson</name>
    <email>tom@280north.com</email>
  </committer>
</commit>
