From dd1143470f634a05fcbcbc2f0724b219026add77 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 11 Apr 2022 22:39:30 +0200 Subject: Disable Mojolicious compression 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 --- lib/DBInfoscreen.pm | 4 ++++ 1 file changed, 4 insertions(+) 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) = @_; -- cgit v1.2.3