Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Flotype/now
base: master
...
head fork: balupton/now
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/fileServer.js
View
8 lib/fileServer.js
@@ -34,13 +34,17 @@ handleResponse = function (request, response) {
} else {
// Make sure default listeners are still handled
for (i in defaultListeners) {
- defaultListeners[i].call(server, request, response);
+ if ( defaultListeners.hasOwnProperty(i) ) {
+ defaultListeners[i].call(server, request, response);
+ }
}
}
} else {
for (i in defaultListeners) {
// Make sure default listeners are still handled
- defaultListeners[i].call(server, request, response);
+ if ( defaultListeners.hasOwnProperty(i) ) {
+ defaultListeners[i].call(server, request, response);
+ }
}
}
};

No commit comments for this range

Something went wrong with that request. Please try again.