diff --git a/README.md b/README.md index 7530268..d622f53 100644 --- a/README.md +++ b/README.md @@ -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(''); })).listen(80); }