Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support websocket subprotocl. #1092

Merged
merged 2 commits into from
Sep 27, 2023
Merged

Support websocket subprotocl. #1092

merged 2 commits into from
Sep 27, 2023

Conversation

LokiWager
Copy link
Collaborator

No description provided.

Comment on lines 192 to 195
subProtocol := req.Header().Get("Sec-WebSocket-Protocol")
if subProtocol != "" {
opts.Subprotocols = []string{subProtocol.(string)}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
subProtocol := req.Header().Get("Sec-WebSocket-Protocol")
if subProtocol != "" {
opts.Subprotocols = []string{subProtocol.(string)}
}
subProtocol := req.HTTPHeader().Get("Sec-WebSocket-Protocol")
if subProtocol != "" {
opts.Subprotocols = []string{subProtocol}
}

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Coverage Δ
pkg/filters/proxies/httpproxy/wspool.go 57.07% <25.00%> (-0.67%) ⬇️

... and 4 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@suchen-sci suchen-sci added this pull request to the merge queue Sep 27, 2023
Merged via the queue into easegress-io:main with commit 9ad9310 Sep 27, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants