'use strict';

module.exports = (req, res, next) => {
  req.headers['content-type'] = req.headers['content-type'] || 'application/json';
  req.headers['accept'] = req.headers['accept'] || 'application/json';
  next();
};

@@ -152,24 +152,25 @@
 'accept'%5D = 
+(
 req.headers%5B
@@ -179,37 +179,97 @@
 ccept'%5D 
-%7C%7C 'application/json'
+=== '*/*' %7C%7C !req.headers%5B'accept'%5D) ? 'application/json' : req.headers%5B'accept'%5D
 ;%0A  next

update default headers