Skip to content

Commit

Permalink
fix #1246
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed May 2, 2016
1 parent 89674d6 commit 66546d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/example_config.py
Expand Up @@ -70,7 +70,7 @@
# A positive integer. Generally set in the 1-5 seconds range.
#

workers = 1
workers = 4
worker_class = 'sync'
worker_connections = 1000
timeout = 30
Expand Down
3 changes: 2 additions & 1 deletion gunicorn/workers/gtornado.py
Expand Up @@ -27,7 +27,8 @@ def setup(cls):

def clear(self):
old_clear(self)
self._headers["Server"] += " (Gunicorn/%s)" % gversion
if not "Gunicorn" in self._headers["Server"]:
self._headers["Server"] += " (Gunicorn/%s)" % gversion
web.RequestHandler.clear = clear
sys.modules["tornado.web"] = web

Expand Down

0 comments on commit 66546d6

Please sign in to comment.