Unverified Commit dd114347 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

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
parent f886c0da
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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) = @_;