Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

merge with sslb tag

  • Loading branch information...
commit a8cfb1d4b4085ec63d5ffa1d198a5372b475d142 2 parents e8545f2 + 73183f4
@nrstott nrstott authored
Showing with 6 additions and 5 deletions.
  1. +5 −4 lib/jsgi-node.js
  2. +1 −1  package.json
View
9 lib/jsgi-node.js
@@ -232,12 +232,13 @@ function start( app, options ) {
app = new Listener( app );
options = options || {};
- var port = options.port || 8080;
+ var port = options.port || 8080,
+ http;
- if (options.ssl) {
- require( "https" ).createServer(options.ssl, app).listen(port);
+ if ( options.ssl ) {
+ http = require( "https" ).createServer( options.ssl, app ).listen( port );
} else {
- require( "http" ).createServer( app ).listen( port );
+ http = require( "http" ).createServer( app ).listen( port );
}
sys.puts( "Server running on port " + port );
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "jsgi",
- "version": "0.0.1",
+ "version": "0.2.4ssl",
"directories": { "lib": "./lib" },
"main": "./lib/jsgi-node",
"author": "Kris Zyp"
Please sign in to comment.
Something went wrong with that request. Please try again.