Fix log filling when locale not English

When locale is not English, logs are filled with those messages:
“Invalid server response. Expected status is 101 'Switching Protocols'.”.
Comparison should only be done on the first part of the String.
Merge pull request #1 from stephanedaviet/master

Fix log filling when locale not English