Reset client_settings on connect.

- Otherwise client_setting carry over from other connections.
This commit is contained in:
Joel Martin 2010-05-15 12:14:30 -05:00
parent 71d2426a8e
commit 0a72cf9026
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ def do_handshake(sock):
# Parse settings from the path
cvars = path.partition('?')[2].partition('#')[0].split('&')
client_settings = {}
for cvar in [c for c in cvars if c]:
name, _, value = cvar.partition('=')
client_settings[name] = value and value or True