*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 14 Jul 2005 13:00:41 +0000 (13:00 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 14 Jul 2005 13:00:41 +0000 (13:00 +0000)
tests/js-test/js/httpd/httpd.js

index 7200fbd..33fb3dd 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.61 2005/07/14 12:47:37 mmondor Exp $ */
+/* $Id: httpd.js,v 1.62 2005/07/14 13:00:41 mmondor Exp $ */
 
 /*
  * Copyright (c) 2005, Matthew Mondor
@@ -59,7 +59,7 @@
  * Server identification
  */
 SERVER_VERSION                 = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID   = '$Id: httpd.js,v 1.61 2005/07/14 12:47:37 mmondor Exp $';
+SERVER_CVSID   = '$Id: httpd.js,v 1.62 2005/07/14 13:00:41 mmondor Exp $';
 
 
 
@@ -911,7 +911,7 @@ FD.prototype.httpRespond = function(time)
                    (this.http_vhost.session_exp != undefined ?
                    this.http_vhost.session_exp :
                    options.default_session_exp));
-               sess.variables.count = 1;
+               sess.variables.count = 0;
                doc.addHeader('Set-Cookie: SessionID=' + sess.sessid +
                    '; expires=' +
                    (new Date(sess.expires * 1000)).toGMTString() +
@@ -933,8 +933,9 @@ FD.prototype.httpRespond = function(time)
                doc.flush(this, null);
 
                return true;
-       } else
-                       this.http_vars_session.count++;
+       }
+       if (this.http_sessid != undefined)
+               this.http_vars_session.count++;
 
 
        /*