Skip to content

Commit c623e5b

Browse files
committed
tests
1 parent f2edf05 commit c623e5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coderd/workspaceapps/proxy.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,9 @@ func (s *Server) proxyWorkspaceApp(rw http.ResponseWriter, r *http.Request, appT
545545

546546
r.URL.Path = path
547547
appURL.RawQuery = ""
548-
appURL.Scheme = app.Protocol()
548+
if app.IsPort() {
549+
appURL.Scheme = app.Protocol()
550+
}
549551

550552
proxy := s.AgentProvider.ReverseProxy(appURL, s.DashboardURL, appToken.AgentID, app, s.Hostname)
551553

0 commit comments

Comments
 (0)