Skip to content

Commit ba2e5f9

Browse files
committed
Merge pull request #15 from QuentinBellus/master
Fixing full address in error
2 parents 634493a + 257c920 commit ba2e5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function($key, $value) { return "$key: $value"; }, array_keys($headers), $header
115115

116116
// Validate response.
117117
if (!preg_match('#Sec-WebSocket-Accept:\s(.*)$#mUi', $response, $matches)) {
118-
$address = $scheme . '://' . $host . '/' . $path_with_query;
118+
$address = $scheme . '://' . $host . $path_with_query;
119119
throw new ConnectionException(
120120
"Connection to '{$address}' failed: Server sent invalid upgrade response:\n"
121121
. $response

0 commit comments

Comments
 (0)