Skip to content

Commit

Permalink
Added 'cheroot' server adapter to list of server names, so it can be …
Browse files Browse the repository at this point in the history
…selected from the command line and by name.

Alos added cheroot after cherrypy in the 'auto' adapter to make it future proof.
  • Loading branch information
defnull committed Mar 25, 2017
1 parent be90814 commit 617d08a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -3526,7 +3526,7 @@ def get_event_loop(self):
class AutoServer(ServerAdapter):
""" Untested. """
adapters = [WaitressServer, PasteServer, TwistedServer, CherryPyServer,
WSGIRefServer]
CherootServer, WSGIRefServer]

def run(self, handler):
for sa in self.adapters:
Expand All @@ -3542,6 +3542,7 @@ def run(self, handler):
'wsgiref': WSGIRefServer,
'waitress': WaitressServer,
'cherrypy': CherryPyServer,
'cheroot': CherootServer,
'paste': PasteServer,
'fapws3': FapwsServer,
'tornado': TornadoServer,
Expand Down

0 comments on commit 617d08a

Please sign in to comment.