diff --git a/CHANGELOG b/CHANGELOG index cea2b73..fa593ee 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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.3 - 2020-07-10 +## [2.0.4] - 2020-07-10 + +### Fixed + + - HTTP to HTTPS redirects now start up and work as they should (they weren’t previously). + +## [2.0.3] - 2020-07-10 ### Changed diff --git a/index.js b/index.js index c87149d..874cb21 100644 --- a/index.js +++ b/index.js @@ -181,7 +181,7 @@ class AutoEncrypt { // Monkey-patch the server’s listen method so that we can start up the HTTP // Server at the same time. server.__autoEncrypt__originalListen = server.listen - server.__autoEncrypt__listen = function(...args) { + server.listen = function(...args) { // Start the HTTP server. HttpServer.getSharedInstance().then(() => { // Start the HTTPS server. diff --git a/package.json b/package.json index 9170a8e..2a52d82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@small-tech/auto-encrypt", - "version": "2.0.3", + "version": "2.0.4", "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",