Skip to content

Commit

Permalink
Fix HTTP → HTTPS redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
aral committed Jul 10, 2020
1 parent c1cc01a commit d6506e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d6506e6

Please sign in to comment.