fix: make trace viewer not use 301 to redirect (#23757)
This commit is contained in:
parent
d92a648284
commit
0358f6c434
|
|
@ -125,7 +125,7 @@ async function startTraceViewerServer(traceUrls: string[], options?: Options): P
|
||||||
const urlPath = `/trace/${app || 'index.html'}${searchQuery}`;
|
const urlPath = `/trace/${app || 'index.html'}${searchQuery}`;
|
||||||
|
|
||||||
server.routePath('/', (_, response) => {
|
server.routePath('/', (_, response) => {
|
||||||
response.statusCode = 301;
|
response.statusCode = 302;
|
||||||
response.setHeader('Location', urlPath);
|
response.setHeader('Location', urlPath);
|
||||||
response.end();
|
response.end();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue