fix: make trace viewer not use 301 to redirect (#23757)

This commit is contained in:
Machiel-B 2023-06-16 18:16:01 +02:00 committed by GitHub
parent d92a648284
commit 0358f6c434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@ async function startTraceViewerServer(traceUrls: string[], options?: Options): P
const urlPath = `/trace/${app || 'index.html'}${searchQuery}`;
server.routePath('/', (_, response) => {
response.statusCode = 301;
response.statusCode = 302;
response.setHeader('Location', urlPath);
response.end();
return true;