Skip to content

Some tokens in client handshake data can be empty strings. #6

@Claus1

Description

@Claus1

I use flutter and some tokens that come from flutter IOWebSocketChannel.connect are empty string.

 def _opening_handshake(self, client, data):
      ...
        for token in tokens[1:]:            
                label, value = token.split(": ", 1)
     ...

this code causes an exception. a token can be empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions