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

Make request.scheme return ws/wss for WS even when http/https in SERVER_NAME or proxy headers #2854

Merged
merged 9 commits into from
Dec 7, 2023

Conversation

Tronic
Copy link
Member

@Tronic Tronic commented Nov 17, 2023

Previously it would work as expected locally, but if the scheme was sourced from full URL SERVER_NAME or proxied forwarded headers, incorrect URLs were returned.

@Tronic Tronic requested a review from a team as a code owner November 17, 2023 14:46
@Tronic Tronic changed the title Make request.scheme return ws/wss for SERVER_NAME or proxied proto http/https. Make request.scheme return ws/wss for WS even when http/https in SERVER_NAME or proxy headers Nov 17, 2023
ahopkins
ahopkins previously approved these changes Nov 28, 2023
Copy link

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5f0787b) 88.219% compared to head (7a74ba5) 88.231%.

Additional details and impacted files
@@              Coverage Diff              @@
##              main     #2854       +/-   ##
=============================================
+ Coverage   88.219%   88.231%   +0.011%     
=============================================
  Files           93        93               
  Lines         7275      7282        +7     
  Branches      1249      1251        +2     
=============================================
+ Hits          6418      6425        +7     
- Misses         598       599        +1     
+ Partials       259       258        -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ahopkins ahopkins merged commit 160ec7a into main Dec 7, 2023
26 checks passed
@ahopkins ahopkins deleted the req-ws-url branch December 7, 2023 10:40
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.

2 participants