Browse Source

Added application/json content-type to v2 dataset responses

master
Eric Enns 2 years ago
parent
commit
4339338afb
  1. 1
      cli/server/getDatasetHelpers.js

1
cli/server/getDatasetHelpers.js

@ -96,6 +96,7 @@ const sendJson = async (res, info) => {
stream the response */
const readStream = fs.createReadStream(info.address);
readStream.on('open', () => {
res.set('Content-Type', 'application/json');
readStream.pipe(res);
});
readStream.on('error', (err) => {

Loading…
Cancel
Save