Skip to content

Commit 779b3d6

Browse files
fix(SparkUtils): Fix headers for downloading of GTFS+ on Firefox.
1 parent ea218d9 commit 779b3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/conveyal/datatools/common/utils/SparkUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static HttpServletResponse downloadFile(File file, String filename, Reque
5555
raw.setContentType("application/octet-stream");
5656
raw.setHeader("Content-Disposition", "attachment; filename=" + filename);
5757
// Override the gzip content encoding applied to standard API responses.
58-
res.header("Content-Encoding", "identity");
58+
raw.setHeader("Content-Encoding", "identity");
5959
try (
6060
FileInputStream fileInputStream = new FileInputStream(file);
6161
ServletOutputStream outputStream = raw.getOutputStream()

0 commit comments

Comments
 (0)