Skip to content
Myr

Add support for binding to *all* hosts by passing 'null' as the hostname

Before adoption: this commit came in with the history the project adopted, so no landing records it.

when 'run-ing' the app

authored by ciaranj · committed by ciaranj · parent 3ec970b · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:lib/express/core.js+2 added-2 removed
198 unmodified lines
199 */200 201 run: function(host, port){202 var self = this203 if (host) this.host = host204 if (port) this.port = port203 if (host !== undefined) this.host = host204 if (port !== undefined) this.port = port205 require('http')206 .createServer(function(request, response){207 request.body = ''208 request.setBodyEncoding('utf8')
62 unmodified lines