From 52fa1f246499fb34319a3e1d7227d73e2a209e09 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 8 Jul 2022 15:45:28 -0500 Subject: [PATCH] fix: Handle all method types for app proxying (#2868) 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 79b0766f11..f47fee02bf 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