Verified Commit 50fd195a authored by Aral Balkan's avatar Aral Balkan
Browse files

HTTP to HTTPS redirects are now logged

parent 06d0e559
......@@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.0.0] - 2020-07-02
## [2.0.1] - 2020-07-03
### Added
- HTTP to HTTPS redirects are now logged.
## [2.0.0] - 2020-07-03
### Changed
......
......@@ -113,7 +113,8 @@ class HttpServer {
return
}
// Not using a 307 here
// Redirect HTTP to HTTPS.
log(` 👉 ❨auto-encrypt❩ Redirecting HTTP request to HTTPS.`)
response.statusCode = 307
response.setHeader('Location', encodeUrl(httpsUrl))
response.end()
......
{
"name": "@small-tech/auto-encrypt",
"version": "2.0.0",
"version": "2.0.1",
"description": "Adds automatic provisioning and renewal of Let’s Encrypt TLS certificates with OCSP Stapling to Node.js https servers (including Express.js, etc.)",
"keywords": [
"let's encrypt",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment