-/* $Id: httpd.js,v 1.47 2005/07/10 01:58:25 mmondor Exp $ */
+/* $Id: httpd.js,v 1.48 2005/07/10 02:31:33 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.47 2005/07/10 01:58:25 mmondor Exp $';
+SERVER_CVSID = '$Id: httpd.js,v 1.48 2005/07/10 02:31:33 mmondor Exp $';
}
/*
+ * If no Host: line set the vhost, set the default one.
+ * If there is a vhost set, but is unknown, also set the default one.
+ * Also set the name of the vhost to the actual vhost name despite
+ * it possibly being resolved through an alias.
+ */
+ if (vhost == '' || vhosts_table[vhost] == undefined)
+ vhost = options.default_vhost;
+ this.http_vhost = vhosts_table[vhost.toLowerCase()];
+
+ /*
* Block out evil Microsoft products
*/
if (evil) {
}
/*
- * If no Host: line set the vhost, set the default one.
- * If there is a vhost set, but is unknown, also set the default one.
- * Also set the name of the vhost to the actual vhost name despite
- * it possibly being resolved through an alias.
- */
- if (vhost == '' || vhosts_table[vhost] == undefined)
- vhost = options.default_vhost;
- this.http_vhost = vhosts_table[vhost.toLowerCase()];
-
- /*
* Verify if client sent a session cookie, and if it consists of a
* valid one, load session data.
*/