Skip to content
This repository was archived by the owner on Dec 7, 2020. It is now read-only.

Commit 2503406

Browse files
committed
Websocket Fix
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{}
1 parent b73e8bd commit 2503406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func entrypointMiddleware(next http.Handler) http.Handler {
5151

5252
// continue the flow
5353
scope := &RequestScope{}
54-
resp := middleware.NewWrapResponseWriter(w, 2)
54+
resp := middleware.NewWrapResponseWriter(w, 1)
5555
next.ServeHTTP(resp, req.WithContext(context.WithValue(req.Context(), contextScopeName, scope)))
5656

5757
// place back the original uri for proxying request

0 commit comments

Comments
 (0)