You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/06/06 05:43:18 UTC

[12/24] cordova-serve git commit: Fix problem caused by circular dependency between server and stream.

Fix problem caused by circular dependency between server and stream.


Project: http://git-wip-us.apache.org/repos/asf/cordova-serve/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-serve/commit/d8a09bf3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-serve/tree/d8a09bf3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-serve/diff/d8a09bf3

Branch: refs/heads/master
Commit: d8a09bf38efa2302940027f66691d892498dab54
Parents: 248a058
Author: Tim Barham <ti...@microsoft.com>
Authored: Sat Aug 22 23:59:48 2015 +1000
Committer: Tim Barham <ti...@microsoft.com>
Committed: Sat Aug 22 23:59:48 2015 +1000

----------------------------------------------------------------------
 src/server.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-serve/blob/d8a09bf3/src/server.js
----------------------------------------------------------------------
diff --git a/src/server.js b/src/server.js
index 4446cd5..ea31831 100644
--- a/src/server.js
+++ b/src/server.js
@@ -22,8 +22,7 @@ var chalk  = require('chalk'),
     http   = require('http'),
     url    = require('url'),
     path   = require('path'),
-    Q      = require('q'),
-    stream = require('./stream');
+    Q      = require('q');
 
 /**
  * @desc Launches a server with the specified options and optional custom handlers.
@@ -123,7 +122,7 @@ module.exports = function (opts) {
                 } else if (!isFileChanged(filePath)) {
                     do304();
                 } else {
-                    var streamHandler = opts.streamHandler || stream;
+                    var streamHandler = opts.streamHandler || require('./stream');
                     streamHandler(filePath, request, response);
                 }
             });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org