Skip to content

Commit d582228

Browse files
committed
make server object always available
1 parent b5ba68c commit d582228

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tremolo/asgi_server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ async def request_received(self, request, response):
5151
'state': self.options['state'].copy()
5252
}
5353

54-
if self.options['experimental']:
55-
# provide direct access to server objects
56-
scope['state']['server'] = dict(self.server, response=response)
54+
# provide direct access to server objects
55+
scope['state']['server'] = dict(self.server, response=response)
5756

5857
if (self.options['ws'] and b'sec-websocket-key' in request.headers and
5958
b'upgrade' in request.headers and

0 commit comments

Comments
 (0)