Cools down Chrome/Windows during testing

This commit is contained in:
Yury Delendik 2014-03-31 07:46:11 -05:00
parent 7d5bf83ce8
commit 4d3b15a486
2 changed files with 19 additions and 5 deletions

View file

@ -47,6 +47,7 @@ function WebServer() {
this.port = 8000;
this.server = null;
this.verbose = false;
this.disableRangeRequests = false;
this.hooks = {
'GET': [],
'POST': []
@ -89,8 +90,7 @@ WebServer.prototype = {
return;
}
// disables range requests for chrome windows -- locks during testing
var disableRangeRequests = /Windows.*?Chrom/i.test(agent);
var disableRangeRequests = this.disableRangeRequests;
var filePath;
fs.realpath(path.join(this.root, pathPart), checkFile);