diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-04-14 11:16:43 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-04-14 11:18:18 +0200 |
commit | e2753e2a9604e9687e1ba8dda26174cc013d75c8 (patch) | |
tree | a377b331c0c4692cbec9dd0b79e869be3cb9112c /lib/DBInfoscreen.pm | |
parent | dd1143470f634a05fcbcbc2f0724b219026add77 (diff) |
stationboard: directly render json
The render_to_string path is only needed for legacy callback requests.
With this change, renderer->compression(0) is no longer required for
non-callback json requests to work.
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r-- | lib/DBInfoscreen.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 519e837..7730f90 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -43,7 +43,8 @@ sub startup { chomp $self->config->{version}; # Generally, the reverse proxy handles compression. - # Also, Mojolicious compression breaks JSON endpoints for some clients. + # Also, Mojolicious compression breaks legacy callback-based JSON endpoints + # for some clients. $self->renderer->compress(0); $self->hook( |