Skip to content

Commit 64b9fa7

Browse files
Merge 26.3 to develop
2 parents fb87bfe + 2b7f866 commit 64b9fa7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

server/embedded/src/org/labkey/embedded/LabKeyServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ public static void main(String[] args)
130130

131131
// Enable HTTP compression for response content
132132
put("server.compression.enabled", "true");
133+
// Spring Boot compresses HTML, JSON and other types by default, but not TSV, CSV, or SVG.
134+
// We have to duplicate the defaults and add those types
135+
put("server.compression.mime-types", "text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml,text/tab-separated-values,text/csv,image/svg+xml");
133136

134137
put("server.tomcat.accesslog.enabled", "true");
135138
put("server.tomcat.accesslog.pattern", "%h %l %u %t \"%r\" %s %b %D %S %I \"%{Referer}i\" \"%{User-Agent}i\" %{LABKEY.username}s %{X-Forwarded-For}i");

0 commit comments

Comments
 (0)