Skip to content

Commit e3d0ea9

Browse files
authored
test: disable case-sensitive routing for express servers (#1844)
1 parent 2867959 commit e3d0ea9

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

test/e2e/oidc/playwright-tests/src/global-setup-teardown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const backendUrl = 'http://localhost:8383';
2828
async function startFakeFrontend() {
2929
console.log('Starting fake frontend proxy...'); // eslint-disable-line no-console
3030
const fakeFrontend = express();
31+
fakeFrontend.set('case sensitive routing', true);
3132
fakeFrontend.use(cookieParser());
3233
fakeFrontend.use(createProxyMiddleware('/v1', { target: backendUrl }));
3334
fakeFrontend.get('*', successHandler); // eslint-disable-line no-use-before-define

test/integration/external/sentry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ describe('sentry', () => {
6060
const events = [];
6161

6262
const app = express();
63+
app.set('case sensitive routing', true);
6364
app.use(express.text({ type: () => true }));
6465
app.get('/event-log', (req, res) => {
6566
res.send(events);

0 commit comments

Comments
 (0)