heroku-https
v1.0.0
Published
Enforce https on heroku apps
Downloads
2
Readme
Heroku https
Enforce https on heroku apps
var http = require('http');
var enforceHttps = require('heroku-https');
var server = http.createServer(function( request, response ){
if (enforceHttps(request, response))
console.log('User was redirected');
else
console.log('Serve content');
});
server.listen(3000);