diff --git a/lib/standalone.js b/lib/standalone.js index 45b085b..8ff94f4 100644 --- a/lib/standalone.js +++ b/lib/standalone.js @@ -169,7 +169,12 @@ function lexHelper(obj, app) { } function LEX(obj, app) { - var https = require('http2'); + var https; + try { + https = require('spdy'); + } catch(e) { + https = require('https'); + } var http = require('http'); function listen(plainPorts, tlsPorts, onListening) {