You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-15 00:15:00 +02:00
Improve websocket support
This commit is contained in:
@ -24,6 +24,11 @@ func TestLoggingHandler_ServeHTTP(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
buf := bytes.NewBuffer(nil)
|
||||
handler := func(w http.ResponseWriter, req *http.Request) {
|
||||
_, ok := w.(http.Hijacker)
|
||||
if !ok {
|
||||
t.Error("http.Hijacker is not available")
|
||||
}
|
||||
|
||||
w.Write([]byte("test"))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user