mirror of
https://github.com/django/daphne.git
synced 2024-11-25 09:13:44 +03:00
Set HTTP Server header to "Daphne" to avoid revealing Autobahn version number. (#122)
This commit is contained in:
parent
63d2166320
commit
4ff2384337
|
@ -323,7 +323,7 @@ class HTTPFactory(http.HTTPFactory):
|
||||||
# We track all sub-protocols for response channel mapping
|
# We track all sub-protocols for response channel mapping
|
||||||
self.reply_protocols = {}
|
self.reply_protocols = {}
|
||||||
# Make a factory for WebSocket protocols
|
# Make a factory for WebSocket protocols
|
||||||
self.ws_factory = WebSocketFactory(self, protocols=ws_protocols)
|
self.ws_factory = WebSocketFactory(self, protocols=ws_protocols, server='Daphne')
|
||||||
self.ws_factory.setProtocolOptions(
|
self.ws_factory.setProtocolOptions(
|
||||||
autoPingTimeout=ping_timeout,
|
autoPingTimeout=ping_timeout,
|
||||||
allowNullOrigin=True,
|
allowNullOrigin=True,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user