Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 6603748

Browse files
committed
Added experimental auto-recovery and gzip support
1 parent 8c0bab3 commit 6603748

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88
### Added
9+
- [2021-06-14] Added experimental auto-recovery and gzip support by [@lflare].
910

1011
### Changed
1112
- [2021-06-14] Took advantage of new `bolt.Compact()` command for database shrinking by [@lflare].

internal/mdathome/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ func StartServer() {
469469
}
470470

471471
// Set router
472-
http.Handle("/", r)
472+
http.Handle("/", handlers.RecoveryHandler()(handlers.CompressHandler(r)))
473473

474474
// Start server
475475
err = listenAndServeTLSKeyPair(":"+strconv.Itoa(clientSettings.ClientPort), clientSettings.AllowHTTP2, keyPair, r)

0 commit comments

Comments
 (0)