Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

work-around query() sometimes returning undefined

  • Loading branch information...
commit f8ed58bd68df96e81117959c6439ea6790b6cf2f 1 parent 4aa3e1e
James Halliday authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  index.js
  2. +1 1  package.json
2  index.js
@@ -64,7 +64,7 @@ function handler (ports, opts, req, bounce) {
64 64 req.on('error', function () { req.socket.destroy() });
65 65 req.socket.on('error', function () { req.socket.destroy() });
66 66
67   - var ps = ports.query(opts.prefix + '.' + host);
  67 + var ps = ports.query(opts.prefix + '.' + host) || [];
68 68 var mounts = ps.filter(function (p) {
69 69 if (typeof p.mount !== 'string') return false;
70 70
2  package.json
... ... @@ -1,6 +1,6 @@
1 1 {
2 2 "name" : "mountie",
3   - "version" : "0.0.0",
  3 + "version" : "0.0.1",
4 4 "description" : "compose web servers behind host headers and mount paths",
5 5 "main" : "index.js",
6 6 "bin" : {},

0 comments on commit f8ed58b

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