Hi,
I just noticed a problem in my code after upgrading to 0.8.0. Isolating the
> bug got me to this minimal repro-case:
>
> var LISTENPORT = 8081;
> var connect = require('connect');
> // this does not work:
> /* var app = connect().use(connect.static('public-html'));
> app.listen(LISTENPORT);
> */
> // but this works (!)
> var app = connect().use(connect.static('public-html')).listen(8081);
>
Isn't it because in the second case, you're assigning app to the result of
the listen() call, and not to the app?
Paddy
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en