koding / websocketproxy

WebSocket reverse proxy handler for Go
http://godoc.org/github.com/koding/websocketproxy
MIT License
429 stars 120 forks source link

Add WebsocketProxy.Director optional function to forward additional headers #11

Closed slimsag closed 7 years ago

slimsag commented 7 years ago

Useful in situations where a WebSocket HTTP server that is being proxied to requires custom headers, and also should fix issues like https://github.com/koding/websocketproxy/issues/9

slimsag commented 7 years ago

It looks like this project is built with a (very) old version of Go on CI, which doesn't have sync.Pool, hence the error:

../../gorilla/websocket/compression.go:95: undefined: sync.Pool
cihangir commented 7 years ago

You can update the version here

slimsag commented 7 years ago

Thanks! I've added a commit to fix Travis directly to this PR. It looks like Go 1.5 is the minimum required version, because of tls.Config.GetCertificate being in use.

rjeczalik commented 7 years ago

Thanks @slimsag!