-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug when sec-websocket-protocol and sec-websocket-extensions appe…
…ar in header
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4cbdcd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this change does address the simple failure case of one protocol, it still does not properly handle the case where the client is created with an array of protocol values (same for extensions).
A more correct change is:
protocols.extend([x.strip() for x in value.split(b',')])
This fix is is included in Pull Request #219.
4cbdcd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. When Iooked at it yesterday, I sort of recalled this could be a case but not quite sure. I do not use this project myself and I must admit I didn't clearly remember the details. I probably should have been more careful.