mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2025-11-03 21:42:47 +00:00 
			
		
		
		
	try spdy instead of http2, fallback to https #25
This commit is contained in:
		
							parent
							
								
									ad2e26a277
								
							
						
					
					
						commit
						17674f2a32
					
				@ -169,7 +169,12 @@ function lexHelper(obj, app) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function LEX(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');
 | 
					  var http = require('http');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  function listen(plainPorts, tlsPorts, onListening) {
 | 
					  function listen(plainPorts, tlsPorts, onListening) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user