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

Websocket Fix #303

Merged
merged 1 commit into from
Jan 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func entrypointMiddleware(next http.Handler) http.Handler {

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

// place back the original uri for proxying request
Expand Down