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

index 0349fe2..5d34524 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.21 2005/07/07 05:34:14 mmondor Exp $ */
+/* $Id: httpd.js,v 1.22 2005/07/07 05:40:41 mmondor Exp $ */
 
 /*
  * Copyright (c) 2005, Matthew Mondor
@@ -83,7 +83,7 @@ eval(file_read('root.js'));           /* Root object for virtual chroot(2) */
  * Server identification
  */
 SERVER_VERSION                 = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID   = '$Id: httpd.js,v 1.21 2005/07/07 05:34:14 mmondor Exp $';
+SERVER_CVSID   = '$Id: httpd.js,v 1.22 2005/07/07 05:40:41 mmondor Exp $';
 
 
 
@@ -526,6 +526,8 @@ FD.prototype.parseRequest = function()
        this.http_agent = '';
        this.http_content_length = -1;
        this.http_modified_since = undefined;
+       this.http_sessid = undefined;
+       this.http_vars_session = {};
 
        /* Split request lines */
        lines = this.request_data.split("\r\n");
@@ -896,6 +898,31 @@ FD.prototype.httpDebug = function()
        tr.addContent(td);
        table.addContent(tr);
 
+       tr = new MLTag('tr', true);
+       td = new MLTag('td', true);
+       td.addAttr('align', 'right');
+       td.addContent('SessID:');
+       tr.addContent(td);
+       td = new MLTag('td', true);
+       td.addContent(this.http_sessid);
+       tr.addContent(td);
+       table.addContent(tr);
+
+       tr = new MLTag('tr', true);
+       td = new MLTag('td', true);
+       td.addAttr('align', 'right');
+       td.addContent('Sess vars:');
+       tr.addContent(td);
+       td = new MLTag('td', true);
+       var font = new MLTag('font', true);
+       font.addAttr('size', '-3');
+       pre = new MLTag('pre', true);
+       pre.addContent(uneval(this.http_vars_session));
+       font.addContent(pre);
+       td.addContent(font);
+       tr.addContent(td);
+       table.addContent(tr);
+
        return table;
 }