diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-04-11 22:39:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-04-11 22:39:30 +0200 |
commit | dd1143470f634a05fcbcbc2f0724b219026add77 (patch) | |
tree | 312eb8b7b66aa5fe9567917019a02b66ba6fb03c /lib/DBInfoscreen.pm | |
parent | f886c0da93fd9ce46080198ec3f6f1ba5c0406cd (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
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r-- | lib/DBInfoscreen.pm | 4 |
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) = @_; |