From 3348c54866583da384389bfdb7472ad697410c8a Mon Sep 17 00:00:00 2001 From: Eric Menendez Date: Tue, 30 May 2017 15:31:57 -0700 Subject: [PATCH] Set HTTP Server header to "Daphne" to avoid revealing Autobahn version number. --- daphne/http_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/http_protocol.py b/daphne/http_protocol.py index 0b5ffe2..e4af30e 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -323,7 +323,7 @@ class HTTPFactory(http.HTTPFactory): # We track all sub-protocols for response channel mapping self.reply_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( autoPingTimeout=ping_timeout, allowNullOrigin=True,