mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 10:22:43 +02:00
(proxy, internal/config, internal/log, docs): opt-in websocket support
This commit is contained in:
parent
cf61c6be3d
commit
f966e5ab19
6 changed files with 55 additions and 4 deletions
|
@ -273,7 +273,8 @@ func NewReverseProxyHandler(o *config.Options, proxy *httputil.ReverseProxy, rou
|
|||
timeout = route.UpstreamTimeout
|
||||
}
|
||||
timeoutMsg := fmt.Sprintf("%s failed to respond within the %s timeout period", route.Destination.Host, timeout)
|
||||
return http.TimeoutHandler(up, timeout, timeoutMsg), nil
|
||||
timeoutHandler := http.TimeoutHandler(up, timeout, timeoutMsg)
|
||||
return websocketHandlerFunc(up, timeoutHandler, o), nil
|
||||
}
|
||||
|
||||
// urlParse wraps url.Parse to add a scheme if none-exists.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue