From 823eda56057da26849972278d1dd90bf3a9f527d Mon Sep 17 00:00:00 2001 From: kylecarbs Date: Fri, 8 Jul 2022 20:31:55 +0000 Subject: [PATCH] fix: Handle all method types for app proxying All methods need to be accepted on app routes. Some apps may POST (like Jupyter). --- coderd/coderd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderd/coderd.go b/coderd/coderd.go index 79b0766f11842..f47fee02bfae5 100644 --- a/coderd/coderd.go +++ b/coderd/coderd.go @@ -124,7 +124,7 @@ func New(options *Options) *API { apiKeyMiddleware, httpmw.ExtractUserParam(api.Database), ) - r.Get("/*", api.workspaceAppsProxyPath) + r.HandleFunc("/*", api.workspaceAppsProxyPath) } // %40 is the encoded character of the @ symbol. VS Code Web does // not handle character encoding properly, so it's safe to assume