Skip to content

Commit

Permalink
fix: Handle all method types for app proxying (#2868)
Browse files Browse the repository at this point in the history
All methods need to be accepted on app routes. Some apps
may POST (like Jupyter).
  • Loading branch information
kylecarbs committed Jul 8, 2022
1 parent 8589eb6 commit 52fa1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coderd/coderd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52fa1f2

Please sign in to comment.