Skip to content
Snippets Groups Projects
Unverified Commit 1f5005e6 authored by Rohith Jayawardene's avatar Rohith Jayawardene Committed by GitHub
Browse files

Websocket Fix (#303)

The http2FancyWriter does not implement the http.Hijacker method causing the websocket upgrade to throw an exception. This PR fixes the issues by forcing the selection of httpFancyWriter{}
parent 32a8e7e8
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ func entrypointMiddleware(next http.Handler) http.Handler { ...@@ -51,7 +51,7 @@ func entrypointMiddleware(next http.Handler) http.Handler {
// continue the flow // continue the flow
scope := &RequestScope{} scope := &RequestScope{}
resp := middleware.NewWrapResponseWriter(w, 2) resp := middleware.NewWrapResponseWriter(w, 1)
next.ServeHTTP(resp, req.WithContext(context.WithValue(req.Context(), contextScopeName, scope))) next.ServeHTTP(resp, req.WithContext(context.WithValue(req.Context(), contextScopeName, scope)))
// place back the original uri for proxying request // place back the original uri for proxying request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment