Merge pull request #1857 from hedgedoc/fix/crash-on-metrics

This commit is contained in:
David Mehren 2021-12-03 20:13:07 +01:00 committed by GitHub
commit f79ca5b39f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

2
app.js
View file

@ -175,7 +175,7 @@ app.use(flash())
// passport
app.use(passport.initialize())
app.use(passport.session())
app.use(useUnless(['/status', '/metrics'], passport.session()))
// check uri is valid before going further
app.use(require('./lib/web/middleware/checkURIValid'))

View file

@ -1,5 +1,11 @@
# Release Notes
## <i class="fa fa-tag"></i> Unreleased
### Bugfixes
- Fix error in the session handler when requesting `/metrics` or `/status`
## <i class="fa fa-tag"></i> 1.9.1 <i class="fa fa-calendar-o"></i> 2021-12-02
This release increases the minimum required Node versions to `12.20.0`, `14.13.1` and `16`.