*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 10 Jul 2005 22:41:17 +0000 (22:41 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 10 Jul 2005 22:41:17 +0000 (22:41 +0000)
tests/js-test/js/httpd/httpd.js

index 3af487d..0f22043 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.50 2005/07/10 20:12:21 mmondor Exp $ */
+/* $Id: httpd.js,v 1.51 2005/07/10 22:41:17 mmondor Exp $ */
 
 /*
  * Copyright (c) 2005, Matthew Mondor
@@ -115,7 +115,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.50 2005/07/10 20:12:21 mmondor Exp $';
+SERVER_CVSID   = '$Id: httpd.js,v 1.51 2005/07/10 22:41:17 mmondor Exp $';
 
 
 
@@ -957,9 +957,10 @@ FD.prototype.httpRespond = function(time)
                var data, s, o;
 
                if (((o = jso_cache[path.real]) != undefined) &&
-                   o.time == st.st_mtime)
+                   o.time == st.st_mtime) {
                        obj.script = o.script;
-               else {
+                       fd.close();
+               } else {
                        try {
                                data = file_read2(fd);
                                s = 'obj.script = function() {' + data + '}';