diff --git a/lib/createHandler.js b/lib/createHandler.js index 631f127..0e3d985 100644 --- a/lib/createHandler.js +++ b/lib/createHandler.js @@ -6,18 +6,7 @@ var createHandler = exports.createHandler = function ( module, options ){ return function (request, response, next) { router.handle(request, request.body, function (result) { - var contentType = contentType = "text/html"; - - - /* - if (request.headers && typeof request.headers.accept === 'string' - && request.headers.accept.search('text/html') > -1) { - contentType = "text/html"; - } - else { - contentType = "application/json"; - } - */ + var contentType = "text/html"; if (result.status === 404 && next ) { if(next.length>1){