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

Add no-server-header support for Web Socket implementations #1735

Closed
wants to merge 64 commits into from

Conversation

Kludex
Copy link
Sponsor Member

@Kludex Kludex commented Oct 28, 2022

Just for the purpose of review. I cannot target an outside branch. This is the same as #1606.

iudeen and others added 30 commits July 15, 2022 07:50
adopted change suggested.

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
as per suggestion, moved the limitation to --no-server-header area
Added logic to add server header support for websockets and also to pass default headers
Added logic to add server header support for websockets and also to pass default headers
* added logic to accept default headers in websocket

* added default_headers to class init

* fix

* feat(websockets): added server header support for websockets

Added logic to add server header support for websockets and also to pass default headers

* feat(websockets-wsproto): added server header support for websockets

Added logic to add server header support for websockets and also to pass default headers

Co-authored-by: Irfanuddin <irfanuddin@knowledgelens.com>
# Conflicts:
#	uvicorn/protocols/websockets/websockets_impl.py
#	uvicorn/protocols/websockets/wsproto_impl.py
--no-date-header is also not compatible with Websockets
--no-date-header is also not compatible with Websockets
Suggestion removes duplication check on header names to keep it consistent with http implementations.

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Irfanuddin <irfanuddinshafi@gmail.com>
Remove the line about limitation of `no-server-header` from docs.
…-headers

# Conflicts:
#	uvicorn/protocols/websockets/websockets_impl.py
@Kludex Kludex closed this Oct 28, 2022
@Kludex Kludex deleted the feature/websocket-headers branch October 28, 2022 16:52
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

2 participants