Skip to content

Commit

Permalink
Change Server header to bot name
Browse files Browse the repository at this point in the history
For security it's best to remover the Server header or to remove the server name from it
  • Loading branch information
Zalk0 committed Oct 25, 2023
1 parent 5b717eb commit 4573563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def handler(request):
"X-Frame-Options": "DENY",
"X-Content-Type-Options": "nosniff",
"Content-Security-Policy": "default-src 'self'",
"Server": "Python"
"Server": self.user.name
})

app = web.Application()
Expand Down

0 comments on commit 4573563

Please sign in to comment.