Skip to content

Commit 61ed03a

Browse files
Compress TSV exports
1 parent 41f0053 commit 61ed03a

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. We have to duplicate the
134+
// defaults and add text/tab-separated-values
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");
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)