mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2025-11-04 05:52:47 +00:00 
			
		
		
		
	Merge branch 'master' of github.com:Daplie/letsencrypt-express
This commit is contained in:
		
						commit
						7ae011ec03
					
				@ -108,6 +108,7 @@ var https = require('spdy');
 | 
			
		||||
function redirectHttp() {
 | 
			
		||||
  http.createServer(LEX.createAcmeResponder(lex, function redirectHttps(req, res) {
 | 
			
		||||
    res.setHeader('Location', 'https://' + req.headers.host + req.url);
 | 
			
		||||
    res.statusCode = 302;
 | 
			
		||||
    res.end('<!-- Hello Developer Person! Please use HTTPS instead -->');
 | 
			
		||||
  })).listen(80);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user