Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52fa1f2

Browse files
authored
fix: Handle all method types for app proxying (coder#2868)
All methods need to be accepted on app routes. Some apps may POST (like Jupyter).
1 parent 8589eb6 commit 52fa1f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/coderd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func New(options *Options) *API {
124124
apiKeyMiddleware,
125125
httpmw.ExtractUserParam(api.Database),
126126
)
127-
r.Get("/*", api.workspaceAppsProxyPath)
127+
r.HandleFunc("/*", api.workspaceAppsProxyPath)
128128
}
129129
// %40 is the encoded character of the @ symbol. VS Code Web does
130130
// not handle character encoding properly, so it's safe to assume

0 commit comments

Comments
 (0)