Skip to content

Commit

Permalink
Merge pull request #677 from meejah/remove-powered-by
Browse files Browse the repository at this point in the history
remove X-Powered-By header
  • Loading branch information
Tobias Oberstein committed May 15, 2016
2 parents 54da888 + 0827923 commit 1c86fef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions autobahn/websocket/protocol.py
Expand Up @@ -2755,11 +2755,9 @@ def succeedHandshake(self, res):
#
response = "HTTP/1.1 101 Switching Protocols\x0d\x0a"

if self.factory.server is not None and self.factory.server != "":
if self.factory.server:
response += "Server: %s\x0d\x0a" % self.factory.server

response += "X-Powered-By: AutobahnPython/{0}\x0d\x0a".format(__version__)

response += "Upgrade: WebSocket\x0d\x0a"
response += "Connection: Upgrade\x0d\x0a"

Expand Down

0 comments on commit 1c86fef

Please sign in to comment.