From 4f6a000757d661ad43c27d2cfdc5c83e749f04cd Mon Sep 17 00:00:00 2001 From: bill bittner Date: Mon, 7 Aug 2017 10:54:07 -0700 Subject: [PATCH] removed switch that falls back to serve on show routes --- routes/serve-routes.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/routes/serve-routes.js b/routes/serve-routes.js index 3dd3d8a7..f42bd1c5 100644 --- a/routes/serve-routes.js +++ b/routes/serve-routes.js @@ -93,11 +93,7 @@ module.exports = (app) => { method = SERVE; } } else { - if (headers['accept'] && !headers['accept'].split(',').includes('text/html')) { - method = SERVE; - } else { - method = SHOW; - } + method = SHOW; } /* start: temporary patch for backwards compatability spee.ch/name/claim_id */ if (isValidShortUrlOrClaimId(name) && !isValidShortUrlOrClaimId(identifier)) {