From 6207a1ec646ffe93d8dabc4c74d330348aa61a49 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Sat, 26 Aug 2023 12:52:02 -0700 Subject: [PATCH] change default of ignoreTrailingSlash to true --- lib/dingus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dingus.js b/lib/dingus.js index 484debc..0f2af74 100644 --- a/lib/dingus.js +++ b/lib/dingus.js @@ -22,7 +22,7 @@ const Template = require('./template'); const _fileScope = common.fileScope(__filename); const defaultOptions = { - ignoreTrailingSlash: false, + ignoreTrailingSlash: true, proxyPrefix: '', strictAccept: true, selfBaseUrl: '', @@ -36,7 +36,7 @@ class Dingus { /** * @param {Object} logger object which implements logging methods * @param {Object} options - * @param {Boolean} options.ignoreTrailingSlash + * @param {Boolean} options.ignoreTrailingSlash requests for '/foo/' will match a '/foo' route * @param {string} options.proxyPrefix leading part of url path to strip * @param {Boolean} options.strictAccept whether to error on unsupported Accept type * @param {string} options.selfBaseUrl for constructing links -- 2.43.2