Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

standardHandlers -> basicHandlers to match function call

  • Loading branch information...
commit a21737005af844d37fdcb884a807f57672024375 1 parent c15405c
Rasmus Andersson authored

Showing 1 changed file with 6 additions and 8 deletions. Show diff stats Hide diff stats

  1. 14  oui/server/index.js
14  oui/server/index.js
@@ -369,7 +369,7 @@ exports.start = function(options) {
369 369
   var opt = {
370 370
     port: 80,
371 371
     commandLineParsing: true,
372  
-    standardHandlers: true,
  372
+    basicHandlers: true,
373 373
     sessionHandlers: true,
374 374
     // addr, sock ..
375 375
     // any other property is assigned to the server object
@@ -392,7 +392,7 @@ exports.start = function(options) {
392 392
     'sock',
393 393
     'commandLineParsing',
394 394
     'onCommandLineParseError',
395  
-    'standardHandlers',
  395
+    'basicHandlers',
396 396
     'sessionHandlers',
397 397
   ];
398 398
   Object.keys(opt).forEach(function(k){
@@ -400,13 +400,11 @@ exports.start = function(options) {
400 400
   });
401 401
   // trim trailing slashes from pathPrefix
402 402
   server.pathPrefix = server.pathPrefix.replace(/\/+$/, '');
403  
-  // Unless noStandardHandlers...
404  
-  if (opt.standardHandlers) {
405  
-    if (opt.sessionHandlers) {
406  
-      server.enableSessionHandlers(sessionPrefix);
407  
-    }
  403
+  // Enable standard handlers
  404
+  if (opt.sessionHandlers)
  405
+    server.enableSessionHandlers(sessionPrefix);
  406
+  if (opt.basicHandlers)
408 407
     server.enableBasicHandlers();
409  
-  }
410 408
   // listen
411 409
   if (opt.sock) {
412 410
     // bind to UNIX socket

0 notes on commit a217370

Please sign in to comment.
Something went wrong with that request. Please try again.