mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:57:07 +00:00
Change the MIME type of binary responses
This commit is contained in:
@@ -7,7 +7,8 @@ module.exports = async function (req, res, next) {
|
||||
const handlers = {
|
||||
"application/json": json,
|
||||
"application/geo+json": geojson,
|
||||
"application/dougal-map-sequence+octet-stream": binary
|
||||
// application/vnd.aaltronav.dougal+octet-stream; format=0x1c
|
||||
"application/vnd.aaltronav.dougal+octet-stream": binary
|
||||
};
|
||||
|
||||
const mimetype = (handlers[req.query.mime] && req.query.mime) || req.accepts(Object.keys(handlers));
|
||||
|
||||
Reference in New Issue
Block a user