Closed
Description
Hello, I'm getting this error when trying the websocket stuff with caddy and using Go 1.4.2
.
Running caddy with:
localhost
log stdout
errors stdout
websocket /echo cat
And when I try to test that websocket, using ws
(for simplicity's sake):
ws ws://localhost:2015/echo
I get this error in the caddy log (and the ws
script fails with a "bad status"):
[PANIC /echo] /home/lmas/.go/src/golang.org/x/net/websocket/server.go:74 - interface conversion: *middleware.responseRecorder is not http.Hijacker: missing method Hijack
127.0.0.1 - [11/Jun/2015:21:57:20 +0200] "GET /echo HTTP/1.1" 500 26
Another thing I noticed is that if I instead try to run:
ws ws://127.0.0.1:2015/echo
I get no errors in the caddy logs but ws
fails again with the same message.
Any ideas why this is happening? Any suggestions for how to fix it?