From 4ff2384337736a7df35f73da16d8d9fb3dc76ff9 Mon Sep 17 00:00:00 2001 From: Eric Menendez Date: Tue, 30 May 2017 15:56:16 -0700 Subject: [PATCH] Set HTTP Server header to "Daphne" to avoid revealing Autobahn version number. (#122) --- 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,