aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-05-27 17:02:52 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-06-17 17:04:44 +0200
commitc7d929f4f75dcefd318c90314edc4ad5faba0883 (patch)
tree7705de2b72e4d7213efbfc4d7369fc164e0a6315
parent8956bfde671f877b3bec9437f503b3949b98dc23 (diff)
downloadWebsocket-c7d929f4f75dcefd318c90314edc4ad5faba0883.zip
Websocket-c7d929f4f75dcefd318c90314edc4ad5faba0883.tar.gz
Websocket-c7d929f4f75dcefd318c90314edc4ad5faba0883.tar.bz2
Protocol: Update an exception message.
This is more useful to get both `Sec-WebSocket-Key1` and `-Key2` values.
-rw-r--r--Protocol/Hybi00.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Protocol/Hybi00.php b/Protocol/Hybi00.php
index 0483d5b..36ee463 100644
--- a/Protocol/Hybi00.php
+++ b/Protocol/Hybi00.php
@@ -70,8 +70,10 @@ class Hybi00 extends Generic
if (0 === $spaces1 || 0 === $spaces2) {
throw new Websocket\Exception\BadProtocol(
- 'Header Sec-WebSocket-Key: %s is illegal.',
- 0
+ 'Header Sec-WebSocket-Key1: %s or ' .
+ 'Sec-WebSocket-Key2: %s is illegal.',
+ 0,
+ [$key1, $key2]
);
}