fix: Handle all method types for app proxying (#2868)

All methods need to be accepted on app routes. Some apps
may POST (like Jupyter).
This commit is contained in:
Kyle Carberry 2022-07-08 15:45:28 -05:00 committed by GitHub
parent 8589eb693a
commit 52fa1f2464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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