summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-04-11 22:39:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-04-11 22:39:30 +0200
commitdd1143470f634a05fcbcbc2f0724b219026add77 (patch)
tree312eb8b7b66aa5fe9567917019a02b66ba6fb03c
parentf886c0da93fd9ce46080198ec3f6f1ba5c0406cd (diff)
Disable Mojolicious compression4.9.4
Mojoliciuos 9.23 changes compression from default-off to default-on. However, compression breaks JSON endpoints for some clients. So we explicitly disable it now. Closes #12
-rw-r--r--lib/DBInfoscreen.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index afe139a..519e837 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -42,6 +42,10 @@ sub startup {
chomp $self->config->{version};
+ # Generally, the reverse proxy handles compression.
+ # Also, Mojolicious compression breaks JSON endpoints for some clients.
+ $self->renderer->compress(0);
+
$self->hook(
before_dispatch => sub {
my ($self) = @_;