Skip to content

Commit

Permalink
fix session.info has no protocol attribute when use aiohttp backend
Browse files Browse the repository at this point in the history
  • Loading branch information
wang0618 committed Mar 26, 2021
1 parent 2f69b57 commit 5beef68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pywebio/platform/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def close_from_session():
session_info['user_ip'] = request.remote
session_info['request'] = request
session_info['backend'] = 'aiohttp'
session_info['protocol'] = 'websocket'

app_name = request.query.getone('app', 'index')
application = applications.get(app_name) or applications['index']
Expand Down

0 comments on commit 5beef68

Please sign in to comment.