-/* $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
* 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 $';
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 + '}';