mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:57:08 +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 = {
|
const handlers = {
|
||||||
"application/json": json,
|
"application/json": json,
|
||||||
"application/geo+json": geojson,
|
"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));
|
const mimetype = (handlers[req.query.mime] && req.query.mime) || req.accepts(Object.keys(handlers));
|
||||||
|
|||||||
Reference in New Issue
Block a user