Fixed a mis-checked "typeof" statement.

Fixed: Server 'get' function was looking for typeof 'array' rather than typeof 'object'
Esse commit está contido em:
Joshua Gross
2010-03-09 19:00:20 -05:00
commit 3da4903542
+1 -1
Ver Arquivo
@@ -663,7 +663,7 @@ function WebServer(host, port) {
this.urlMap = [];
this.get = function(path, handler) {
if(typeof path == 'array') {
if(typeof path == 'object') {
for(var i = 0, l = path.length; i < l; i++)
this._map(path[i][0], 'GET', path[i][1]);
} else {