From aaa43245e9d8203d4015981ce3175ba9ceda98f0 Mon Sep 17 00:00:00 2001 From: Marshall Walker Date: Mon, 23 May 2022 07:59:59 -0700 Subject: [PATCH 1/2] fix regex for manifest route --- src/node/routes/vscode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/routes/vscode.ts b/src/node/routes/vscode.ts index a0ba3869b367..aa33f7e7027b 100644 --- a/src/node/routes/vscode.ts +++ b/src/node/routes/vscode.ts @@ -170,7 +170,7 @@ export class CodeServerRouteWrapper { constructor() { this.router.get("/", this.ensureCodeServerLoaded, this.$root) - this.router.get(/manifest.json$/, this.manifest) + this.router.get(/\/manifest\.json$/, this.manifest) this.router.all("*", ensureAuthenticated, this.ensureCodeServerLoaded, this.$proxyRequest) this._wsRouterWrapper.ws("*", ensureAuthenticated, this.ensureCodeServerLoaded, this.$proxyWebsocket) } From 9f95fff6d38fa46b6282a2a3acebd9182bed3f71 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 8 Aug 2022 15:42:50 -0700 Subject: [PATCH 2/2] fixup!: fix regex for manifest route --- src/node/routes/vscode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/routes/vscode.ts b/src/node/routes/vscode.ts index aa33f7e7027b..961b46c0f8a8 100644 --- a/src/node/routes/vscode.ts +++ b/src/node/routes/vscode.ts @@ -170,7 +170,7 @@ export class CodeServerRouteWrapper { constructor() { this.router.get("/", this.ensureCodeServerLoaded, this.$root) - this.router.get(/\/manifest\.json$/, this.manifest) + this.router.get("/manifest.json", this.manifest) this.router.all("*", ensureAuthenticated, this.ensureCodeServerLoaded, this.$proxyRequest) this._wsRouterWrapper.ws("*", ensureAuthenticated, this.ensureCodeServerLoaded, this.$proxyWebsocket) }