diff --git a/backend/server.js b/backend/server.js index 91fcb83b..7df41316 100644 --- a/backend/server.js +++ b/backend/server.js @@ -17,7 +17,7 @@ let expectedAudience = `/projects/${process.env.PROJECT_NUMBER}/apps/${process.e let app = express(); -if(process.env.USE_IAP !== "false") { +if (process.env.USE_IAP !== "false") { app.use(checkIap); } @@ -49,6 +49,9 @@ app.get("/data/*", async (req, resp) => { } else if (path.endsWith(".geojson.gz")) { resp.type("application/geo+json"); resp.append("Content-Encoding", "gzip"); + } else if (path.endsWith(".bin.gz")) { + resp.type("application/octet-stream"); + resp.append("Content-Encoding", "gzip"); } // Return the whole file?