You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/09/12 22:27:42 UTC

git commit: [CB-4797] Add missing return statement in cordova serve

Updated Branches:
  refs/heads/master 1571f9d15 -> b1cadf0d1


[CB-4797] Add missing return statement in cordova serve


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

Branch: refs/heads/master
Commit: b1cadf0d1f6afc01960895c512be4ed562d502c9
Parents: 1571f9d
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Sep 12 16:26:46 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Sep 12 16:27:23 2013 -0400

----------------------------------------------------------------------
 src/serve.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/b1cadf0d/src/serve.js
----------------------------------------------------------------------
diff --git a/src/serve.js b/src/serve.js
index e262e12..a72bd23 100644
--- a/src/serve.js
+++ b/src/serve.js
@@ -56,6 +56,7 @@ function launchServer(projectRoot, port) {
             response.writeHead(404, {"Content-Type": "text/plain"});
             response.write("404 Not Found\n");
             response.end();
+            return;
         }
 
         fs.exists(filePath, function(exists) {